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?
Now:
site.ru/search?sort=ASC&sort_by=price&pattern=A6-858054
Need:
site.ru/A6-858054" (now this page gives 404)
And if possible, hitting any page with a search?
What would you recommend?
Thank you.
June 8th 19 at 16:36
4 answers
June 8th 19 at 16:38
need to do a 301 redirect from the old URLs to the new and all will be well
Any redirect, if the page is generated when you search, there is written about it - stephen.Gleason72 commented on June 8th 19 at 16:41
all those URLs that are already indexed by search engines. there is written about it - maritza_Marquardt commented on June 8th 19 at 16:44
you do not understand the essence, the room can be any and the page is generated on the fly, so why to do a redirect if you do not know which number will be formed page. - stephen.Gleason72 commented on June 8th 19 at 16:47
example write - stephen.Gleason72 commented on June 8th 19 at 16:50
examples of how to make redirects from old URLs to new gugliada in 15 seconds - maritza_Marquardt commented on June 8th 19 at 16:53
))) 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.
Wait so:
crosskod.ru/search?sort=ASC&sort_by=price&pattern=3445
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? - stephen.Gleason72 commented on June 8th 19 at 16:56
June 8th 19 at 16:40
Just doing a redirect from the first url to the second permanent
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.
Wait so:
crosskod.ru/search?sort=ASC&sort_by=price&pattern=3445
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?
The URL is not stored anywhere, if they sohranenii, is another matter, but the database has no desire to inflate.. - stephen.Gleason72 commented on June 8th 19 at 16:45
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.

Right?
Yeah right, there is no technical solution to do not likely to .htaccess tried many different options and neither one wants to work. Other necessary redirects with www and so prescribed, and it works. - stephen.Gleason72 commented on June 8th 19 at 16:47
I'm not special, so, paint, whitewash. But I would venture to suggest that to describe the technical procedure of repairing the engine of your website, this is not a comment format. Although, it is possible for Opencart is a turnkey solution and someone will help you. - maritza_Marquardt commented on June 8th 19 at 16:50

Find more questions by tags Processing URLSearch engine optimizationhtaccess