K
K
konlaz2018-02-03 11:10:17
Search Engine Optimization
konlaz, 2018-02-03 11:10:17

Remove part of the URL without losing indexing in search engines?

Hello, a url of this type is formed:
site.ru/search?sort=ASC&sort_by=price&pattern=A6-858054 (the number can be anything)
and the site displays a table with the data found. (the page is generated "on the fly")
all such URLs have already been indexed by search engines for more than 500 thousand.
Is it possible to remove the search?sort=ASC&sort_by=price&pattern= part of the URL so that only numbers remain?
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, will the pages drop out of the search?
What would you advise?
Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
Puma Thailand, 2018-02-03
@opium

You simply redirect from the first url to the second permanent one

K
konlaz, 2018-02-04
@konlaz

))) How can I write more clearly, in the same place I wrote that (the page is formed on the fly) here is an example:
When you enter a number in the search box, it searches for the number in the database and dumps it on the site.
Right now:
crosskod.ru/search?sort=ASC&sort_by=price&pattern=3445
I can't catch up, how can I redirect to a non-existent page?
It should be like this:
crosskod.ru/3445 (there is no such page at all)
Here the task is to remove the search?sort=ASC&sort_by=price&pattern=
URL and the page is formed only when entering data into the search string, how to make a redirect here and to which page?

S
Smenov, 2018-02-04
@foxytrail

I understand that a technical solution is needed on how to do this in the online store engine.
About the redirect template in .htaccess, this is the second question.
Right?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question