1

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]
Jacob Relkin
  • 161,348
  • 33
  • 346
  • 320
user247298
  • 429
  • 1
  • 7
  • 17

1 Answers1

0
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.

Community
  • 1
  • 1
Owen
  • 82,995
  • 21
  • 120
  • 115