S
S
Sergey2021-09-10 20:13:07
URL Handling
Sergey, 2021-09-10 20:13:07

Redirect for products with a bunch of modifications?

Hello connoisseurs!

Please tell me how you can implement a redirect, preferably 301, if there is such a moment.

There is a link, it looks like this
https://site.ru/kresla_kachalki/kreslo_glayder_mod...

This product has a lot of modifications, and they all go under the ID. That is, the final URL looks like this:
https://site.ru/kresla_kachalki/kreslo_glayder_mod...

Is there any way to redirect from a page without an ID to a page with an ID ? This means a mass redirect, since there are thousands of such pages without an ID.

Not taking any action is not entirely appropriate, since in fact it will be a double.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2021-09-11
@shambler81

Here is the redirect for
RewriteRule ^kresla_kachalki/kreslo_glayder_model_101/$ /kresla_kachalki/kreslo_glayder_model_101\-id6800/? [L,R=301]
but where does the ID come from and according to what logic,
how do urls actually differ and according to what logic do they glue IDs?
I don't see this logic in your example.
Will everyone add the same ID?
Now, as for the Modifiers, as far as I understand, these should be GET parameters and not shove them directly into the URL.
Accordingly, you are trying to make normal urls -> ugly, what's the point, because redirects are done primarily for SEO, and for it such moves are not needed by the horse.
In general, give a more detailed technical specification At
least with 2 urls in the example.
Well, and for him, according to your idea, you do it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question