1
我正在尝试重写,但我无法找到它或自己做。.htaccess index.php上两个GET变量的重写规则?
我想转换
http://www.homepage.com/variable1/variable2
到http://www.homepage.com/index.php?var1=variable1&var2=variable2
或http://www.homepage.com/?var1=variable1&var2=variable2
我已经试过
RewriteRule ^/(.*)/(.*)$ ?var1=$1&var2=$2 [NC,L]
RewriteRule ^(.*)/(.*)$ ?var1=$1&var2=$2 [NC,L]
RewriteRule ^/(.*)/(.*)$ index.php?var1=$1&var2=$2 [NC,L]
RewriteRule ^(.*)/(.*)$ index.php?var1=$1&var2=$2 [NC,L]
这些都没有工作。我究竟做错了什么?谢谢 !