Hi,
We have been using these rewrite rules now for nicely formatted URLs for a few months now:
RewriteCond %{REQUEST_URI} !^/(stylesheets|images|skins)/ RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php RewriteCond %{REQUEST_URI} !^/sitemap.xml RewriteCond %{REQUEST_URI} !^/error/(40(1|3|4)|500).html RewriteCond %{REQUEST_URI} !^/favicon.ico RewriteCond %{REQUEST_URI} !^/robots.txt RewriteRule ^/(.*)$ /index.php/$1 [L,QSA]
But today the RewriteRule stopped working and Apache could no longer find /index.php/Main_Page anymore:
File does not exist: /var/www/html/wiki/index.php/Main_Page
It seems pretty weird, the only thing I can think of is that something changed with our Apache configuration? What usually prevents users from being able to use the /index.php/$1 configuration? What keeps Apache from attempting to recognize index.php as a directory?
I switched it to:
RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA]
And it seems to work, but I'm curious as to why it changed all of a sudden. I couldn't find anything on Google or the meta-wiki, so I thought I'd post it here.
Thanks, Travis