0

I need to add redirect from page http://www.mysite.ru/news/?PAGEN_1=1 to http://www.mysite.ru/news/, so I added in .htaccess file code below

RewriteCond %{QUERY_STRING} ^PAGEN_1=1 [NC]
RewriteRule ^news/$ http://www.mysite.ru/news/ [R=301,L]

but I get error "ERR_TOO_MANY_REDIRECTS". What's wrong and how to fix it?

Heidel
  • 3,174
  • 16
  • 52
  • 84
  • Already asked refer http://stackoverflow.com/questions/10135702/301-redirect-from-url-with-query-string-to-new-domain-with-different-query-strin – Vilva May 23 '16 at 09:49

1 Answers1

0

This code works

RewriteCond %{QUERY_STRING} ^PAGEN_1=1 [NC]
RewriteRule ^news/$ http://www.mysite.ru/news/$ [R=301,L]
Heidel
  • 3,174
  • 16
  • 52
  • 84