php使用apache的rewrite规则把访问链接转换的问题?
比如:
http://www.xxx.com/x/index.html
http://www.xxx.com/x/index.html?b1=y&b2=z& ....
http://www.xxx.com/x/question.html
http://www.xxx.com/x/question.html?b1=y&b2=z& ....
怎么写rewrite规则,把上面的转换为下面的链接:(就是把a1这个参数的值改为问号后面参数传入)
http://www.xxx.com/index.php?a1=x
http://www.xxx.com/index.php?a1=x&b1=y&c1=z& ....
http://www.xxx.com/question.php?a1=x
http://www.xxx.com/question.php?a1=x&b1=y&c1=z& ....
xxxxdl
9 years, 12 months ago