Answer the question
In order to leave comments, you need to log in
Why does Google Webmaster complain about redirects?
The interfaces have buttons (links) for switching listing sortings. They lead to the following addresses:
site.com/ru/?sort=price
site.com/ru/?sort=rating
And at the beginning of the page there is this simple piece:
if(isset($_GET['sort'])){
setcookie("sort", $_GET['sort'], time()+315360000, "/"); // на 10 лет..
header("location:".$_SERVER['HTTP_REFERER']);
}
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