0

I hosted my site on rackspace server, I use codeigniter, I have to remove index.php from the url, I used .htaccess file that I use in other shared hosting server, but its now working my files are at /var/www/html/ my htaccess file is

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$index.php/$1 [L]

Its working fine in local server ( also in other shared hosting server)

How can I fix this ?

Thanks a lot

4

1 に答える 1

1

mod_rewirte がインストールされていることを確認してください

sudo a2enmod rewrite <-有効になっていることを確認してください

.htaccess ファイルが www-data または実行中のユーザー apache によって読み取り可能であることを確認してください。

于 2011-02-20T15:09:37.867 に答える