.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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -