|
|
#1 |
|
New Member
![]() Join Date: Aug 2011
Posts: 1
|
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 by kfried; 08-31-2011 at 05:08 PM. Reason: disable links |
|
|
|
|
|
#2 |
|
Silver Member
![]() Join Date: Aug 2011
Posts: 100
|
You could have something like:
Code:
#RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-/]+)$ $1.php/$2 [L]
__________________
Mark R Wubbleyou - Web Design Newcastle A professional web design agency based in Newcastle upon Tyne servicing clients based throughout the U.K. Home spray tan machine - Landlord Reviews |
|
|
|
![]() |
| Tags |
| htaccess, mod_rewrite, php, url, url handling |
| Thread Tools | |
| Display Modes | |
|
|