To remove part of the URL without losing indexing in the search engines?
Hello, the url is formed like this:
site.ru/search?sort=ASC&sort_by=price&pattern=A6-858054 (the number can be any)
and the website gives a table with data found. (the page is generated "on the fly")
all those URLS are already indexed by search engines more than 500 thousand
Is it possible to remove part of the URL search?sort=ASC&sort_by=price&pattern=that would have left only numbers?
site.ru/A6-858054" (now this page gives 404)
And if possible, hitting any page with a search?
What would you recommend?
maritza_Marquardt answered on June 8th 19 at 16:38
need to do a 301 redirect from the old URLs to the new and all will be well
Eulalia22 answered on June 8th 19 at 16:40
Just doing a redirect from the first url to the second permanent
stephen.Gleason72 answered on June 8th 19 at 16:42
))) How to write clear, there I wrote that (page is generated on the fly) here is an example:
When entering a search string searches through the database room and dumped on the site.
Don't understand how you can do a redirect to a nonexistent page?
It is necessary so:
crosskod.ru/3445 (this page is not at all)
Here the task is to remove search?sort=ASC&sort_by=price&pattern=
The URL and the page is generated only when data is entered into the search bar, how to do a redirect on which page?
oswaldo_Ma answered on June 8th 19 at 16:44
I understand that you need a technical solution how to do this in the engine shop.
About the template redirect to .htaccess is already the second question.