Answer the question
In order to leave comments, you need to log in
How to get rid of duplicate links in Wordpress?
Posts have two categories: Blog + 1 rubric.
Blog is the parent category for all others.
For example, there are categories Blog, Travel, Hotels, etc.
For Travel and Hotels, Blog is the parent category.
The blog is available at:
site.com/blog
Other categories at:
site.com/blog/travel
But they are also available at: site.com/travel, for example.
Entries are available at the link site.com/blog/post-name
AND at the link site.com/blog/travel/post-name
There should be no such duplicates, who can suggest something?
The site is multilingual. Duplicate categories only in the main language version, and duplicate posts in all.
Maybe there is a plugin that will allow you to hard-code links for categories and posts?
Answer the question
In order to leave comments, you need to log in
This means that your entry belongs to several categories at the same time. In addition, the parent category inherits entries from the child, therefore, I recommend removing these categories from permalinks altogether, and then overwriting the prefixes for categories.
Option 2: set rel=canonical.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question