(SOLVED) Removing index.php |
[eluser]tfliam[/eluser]
I've read many other posts (such as http://ellislab.com/forums/viewthread/78726/) on this topic and after trying many ways, I still couldn't make it works. Appreciate if anyone could help me to fix this simple issue. Currently I m running on localhost, Apache/2.2.8 (Win32) PHP/5.2.5 The below URI is fine, http://localhost/learn4business2/index.php/blog but after I remove the index.php, it says 404 NOT FOUND http://localhost/learn4business2/blog I have done the following modification in httpd.conf - change "AllowOverride None" to "AllowOverride All" - enable "LoadModule rewrite_module modules/mod_rewrite.so" I've also changed in the config.php to $config['index_page'] = ""; I add .htaccess in the root directory, that is C:\public_html\learn4business2\.htaccess The content for .htaccess is as below: RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] Can anyone please help? Thanks!
[eluser]Randy Casburn[/eluser]
Hi -- Let's try an experiment... Change... RewriteRule ^(.*)$ /index.php/$1 [L] to... RewriteRule ^(.+) index.php/$1 [L] just for fun. Randy
[eluser]tfliam[/eluser]
yes.... I manage to fix it. Just realize that in httpd.conf there are actually 3 "AllowOverride None" there... after I change all 3 to "AllowOverride All", it working fine now. Thanks for help anyway.
[eluser]Randy Casburn[/eluser]
three !! Wow. cool. I forgot the slash on the .htaccess config. glad you got it sorted. Randy |
Welcome Guest, Not a member yet? Register Sign In |