View Full Version : question for mod rewrite experts...
colombo
May 1st 2008, 9:33 am
Hi,
i need to do the following rewrite:
mydomain.com/dir/var1.html?var2=x&var3=y
to
mydomain.com/test.php?var1=var1&var2=var2&var3=var3
can you help me with this one...?
thanks for your time
Randombase
May 1st 2008, 2:29 pm
RewriteEngine on
RewriteRule ^dir/(.*)\.html?var2=(.*)&var3=(.*)$ test.php?var1=$1&var2=$2&var3=$3
Most likely wrong :)
colombo
May 2nd 2008, 12:57 am
thanks for your replay Randombase
RewriteEngine on
RewriteRule ^dir/(.*)\.html?var2=(.*)&var3=(.*)$ test.php?var1=$1&var2=$2&var3=$3
this is the basic rule, and its not working.
the problem is with the "?" sign after the ".html" (RewriteRule ^dir/(.*)\.html?)
i found some post about it here - http://www.webmasterworld.com/apache/3133879.htm
but i don't know how to change it so it will work :(
if any one understand what i need to do in order to fix it pls help.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.