开发者

htaccess/mod_rewrite doesn't work

开发者 https://www.devze.com 2022-12-17 09:41 出处:网络
I have tried this but it doesn\'t seem to work: RewriteCond %{QUERY_STRING} ^?var=10&开发者_如何学运维view=3$

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

精彩评论

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