Xiode Posted March 20, 2007 Share Posted March 20, 2007 I keep seeing everything being turned from /products/123456 to products.php?id=123456.... The problem is ... I need to do this... page.php?name=Page => Page.html or page.php?name=Page => /Page/ page.php?name=Page&n=SubPage => /Page/SubPage/ RewriteRule ^page\.php?name=([A-Za-z]+)$ page/$1/ ^^ Doesn't work... What would? Link to comment https://forums.phpfreaks.com/topic/43481-backwards-maybe/ Share on other sites More sharing options...
wildteen88 Posted March 20, 2007 Share Posted March 20, 2007 You have the rewrite rule set-up wrong. It should be: RewriteRule ^page/([A-Za-z]+)/$ page\.php?name=$1 Link to comment https://forums.phpfreaks.com/topic/43481-backwards-maybe/#findComment-211389 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.