我正在尝试重写,但我找不到它或自己做。
我正在尝试转换
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]
这些都不起作用。我究竟做错了什么?谢谢 !