N
N
neill0032017-04-07 10:49:06
WooCommerce
neill003, 2017-04-07 10:49:06

Doubles, how to get rid of?

If you rename the parent category url, then the nested subcategory becomes available at 2 addresses, for example:
" https://atxtop.ru/c/selhoz/tehnika-dlja-poliva/poliv/ "
" https://atxtop.ru/c/ selhoz/dlja-poliva/poliv/ "
372bbe7e674b4b96be24de3b95b600a8.jpg
What's the catch, where can these duplicates be stored? As for standard wordpress posts, it turned out to remove the redirect there like this: “remove_action('template_redirect', 'redirect_canonical');”

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasya Petrov, 2017-04-07
@VasyaPertrov

" https://atxtop.ru/c/selhoz/tehnika-dlja-poliva/poliv/ "
" https://atxtop.ru/c/selhoz/dlja-poliva/poliv/ "

For the first url, the canonical is prescribed for the second. No duplicates.
They are stored naturally in the database, and the trick is that they are used for the canonical and redirect.
In fact, when renaming a post category, there should be a redirect. But you don't have post and SEO plugins, so maybe it changes the default behavior.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question