Redirect PHP

CLOSED

Redirect PHP

Postby bokehman » Mon Apr 19, 2010 3:51 am

I am trying to redirect all PHP requests in one directory (not sub-directories) to my index.php file which is in the same directory. Up to now I was redirecting anything that didn't have a file extension but now I want to add all .php requests to this rewrite. I was using the following:

RewriteRule ^([^\.\/]+)$ index.php [L]

How do I alter it to rewrite .php requests as well?
bokehman
 
Posts: 3
Joined: Sat Feb 11, 2006 4:31 am

Return to New Threads/Problems

Who is online

Users browsing this forum: No registered users and 5 guests

cron