.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

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -