.htaccess hiding .php

kfried

New Member
Basically I want the user to type in the following:

http://mysite.com/page/variable1/variable2

and the server to see

http://mysite.com/page.php/variable1/variable2

I know there is a way to make the variables into ?var=1var=2 however I have a php script that is implementing that functionality to better control the conversion.

any help would be appreciated.
 
Last edited:

MarkR

New Member
You could have something like:

Code:
#RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-/]+)$ $1.php/$2 [L]

I haven't tested it but if that doesn't work it won't be far out.
 
Top