htacces redirection if the url doesn't have .php extension

Posted by dremay on Stack Overflow See other posts from Stack Overflow or by dremay
Published on 2010-05-03T05:11:11Z Indexed on 2010/05/03 5:18 UTC
Read the original article Hit count: 277

Filed under:
|

I wish to redirect all page requests if

(1) Current URL doesn't have .php extension

(2) Current Page is not the Site Home (ie www.site.com )

Example:

http://site.com/robin to profile.php?screen_name=robin

Can someone suggests the htaccess to accomplish this?

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about redirect