• 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.

    • This topic was modified 6 years, 10 months ago by mortirolo. Reason: modify title
Viewing 1 replies (of 1 total)
  • Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    @mortirolo Welcome to the Support Forum of Custom Permalinks..!

    I have created the category and the page as per your given scenario and yes, page has preference over category and shows the page data on accessing the /mice/ but when i create a post ‘/mice/the-10-best-mice-2018/’ it works fine for me and doesn’t give 404.

    Does i miss something in your given scenario? Should i need to do anything else to generate this URL?

    Regards,
    Sami

Viewing 1 replies (of 1 total)
  • The topic ‘Conflict permalink /category/postname/’ is closed to new replies.