.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

Popular posts from this blog

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -