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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.