Conflict permalink /category/postname/
-
Hello, I use this plugin to be able to put the same name to categories and pages and that the page has preference over the category. Up to this point, all right.
The problem comes when I configure the permalinks in this way: /% category% /% postname% /. With this configuration, the pages continue to look good, the problem comes when we click on an article. If the URL of the article contains the name of the category it leads to 404.
Example:
– mydomine.com/mice/ (mice is category)
– mydomine.com/mice/ (mice is page)
=> With this configuration if we enter mydomine.com/mice/ we would enter the page. Up to here everything is correct.– On the page mydomine.com/mice/ all articles of the category mice are posted.
– An article would be like this: mydomine.com/mice/the-10-best-mice-2018/. If we click on this article, it would give a 404 error just because it has mice in the URL.
– If the article were like this: mydomine.com/mice/the-10-best-of-2018/ yes the article could be accessed since it does not have ‘mice’ in its URL.In order to configure category and page with the same name, first create the category (mice) and then create a page with the name mice. In order to do this, on the page I set up the slug to mice-2 and the permalink to mice and thus it is possible to create the page with the same name as the category and that the page has preference over the category.
I hope you can help me. It is the only plugin I have found to name categories and pages in the same way.
- The topic ‘Conflict permalink /category/postname/’ is closed to new replies.