Hi all, I've a PHP blogs application, that uses a stub file 'index.php' to make static files. My question is how to remove stub file name from all the URIs.
RewriteEngine on RewriteRule ^http://www\.example\.com/blogs/(.*)?$ http://www.example.com/blogs/index.php/$1 [QSA]
Well, above NOT worked, because its clearly wrong (QSA!) Then, what is the correct way? Please help me.
jd01
7:15 pm on Nov 26, 2005 (gmt 0)
I think you are saying you would like to remove the 'index.php' from the URL being accessed?
That would be something like this:
RewriteEngine on RewriteRule ^blogs/index\.php/(.*)$ http://www.example.com/blogs/$1 [QSA,R=301,L]