开发者

htaccess/mod_rewrite doesn't work

I have tried this but it doesn't seem to work:

RewriteCond %{QUERY_STRING} ^?var=10&开发者_如何学运维view=3$

RewriteRule ^/index.php$ http://www.domain.com/index.php?var=11&view=1 [L,R=301]


RewriteCond %{QUERY_STRING} ^var=10&view=3$
RewriteRule ^index.php$ http://www.domain.com/index.php?var=11&view=1

See common pitfalls (item #2), in the .htaccess file, the leading "/" is not necessary. Also, the leading "?" in the RewriteCond is unnecessary.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜