I am running wamp on win7 just in case. I am trying to route all requests through a route.php
to get clean URLs. Below is my htaccess
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_URI} !(auth|folder2) [NC]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*) ./route.php?path=$1 [L]
As you can see the rule should apply to all files, and it did when I ran it on my old wamp installation. Now after copying the files to a new system, for some reason, the rule seems to work for all links except index.php
. So if I try http://localhost/proj
, I get no routing in the new system. Any ideas?
And before anyone asks, yes rewrite_module
is on, and the htaccess
is being read and executed cause it works for all other links like http://localhost/proj/users
and also because if I try putting garbage values in the htaccess it throws a nice 'internal server error'.