W
W
wagoodoogoo2021-06-29 11:35:15
Search Engine Optimization
wagoodoogoo, 2021-06-29 11:35:15

How to get rid of unnecessary variables in url?

After the next bypass of Yandex, many pages with the following URLs got into the search engine database:

https://site.com/?page=2?page=2&lang=en-US?page=2?page=2&lang=en-US?page=2?page=2&lang=en-US?page=2?page=2?page=2?page=2?page=2?page=2?page=2?page=2&lang=en-US?page=2?page=2?page=2?page=2&lang=en-US?page=2?page=2&lang=en-US?page=2?page=2&lang=en-US?page=2?page=2?page=2?page=2&lang=en-US?page=2?page=2&lang=en-US?page=2?page=2&lang=en-US?page=2?page=2&lang=en-US?page=2?page=2&lang=en-US?page=2?page=2&lang=en-US?page=2?page=2?page=2?page=2&lang=en-US?page=2?page=2&lang=en-US?page=2?page=2?page=2?page=2

where the line in the code of the page was duplicated corrected.
How to get rid of these URLs in the Yandex database? While parsing the url from request and 301 redirect to the correct page comes to mind

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Page-Audit.ru, 2021-06-29
@PageAuditRU

First, you need to catch a bug on the site that allowed generating such a URL and which responds with a 200 code to such a URL.
Secondly, finish the code so that such a URL returns 410 (if such addresses do not bring traffic), and wait for the search engine to get rid of such addresses in its database. Or to give 301, and wait for the same.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question