techcone Posted February 22, 2009 Share Posted February 22, 2009 I want the rewrite urls to be worked like. www.domain.com/name1 == www.domain.com/page.php?name=name1 www.domain.com/name2 == www.domain.com/page.php?name=name1 www.domain.com/name1/value1 == www.domain.com/newpage.php?value=value1 etc.. Now, I am trying this rewrite, But it doesn't seems helping. RewriteRule ^(.*)$ page.php?name=$1 [NC] RewriteRule ^(.*)/(.*)$ newpage.php?value=$2 [NC] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.