.htaccess - friendly URL - two variables in the URL with htaccess -
i need me url rewriting using .htaccess
.
i use url:
www.mydomain.com/page.php?var1=ny&var2=new york
and convert to:
www.mydomain.com/page1/new york
that should done without losing first parameter of course.
perhaps (with appropriate rewritebase):
rewriterule ^page.php?var1=([^&]+)&var2=([^&])$ /page1/$2?var1=$1 [l,r]
Comments
Post a Comment