Answer the question
In order to leave comments, you need to log in
Why is the error "The site redirected too many times." when adding a new redirect to .htaccess?
The point is. You need to create a redirect rule that contains a question mark "?", which makes it impossible to solve the problem using the standard method. Relatively speaking, there is the following way: Of course test.ru/?page=name
, because of the question mark, ordinary redirects will not work.
In order to register the redirect, the following code was used:
RewriteCond %{QUERY_STRING} ^page=name
RewriteRule ^(.*) https://test.ru/ [R=301,L]
The site has redirected too many times.
Delete cookies..
ERR_TOO_MANY_REDIRECTS
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question