mod_rewrite, php and the .htaccess file

One approach is to rewrite everything to a handling script RewriteEngine on RewriteBase / # only rewrite if the requested file doesn’t exist RewriteCond %{REQUEST_FILENAME} !-s # pass the rest of the request into index.php to handle RewriteRule ^(.*)$ /index.php/$1 [L] so if you have a request to http://yourserver/foo/bar/ what you actually get is a … Read more