Support » Fixing WordPress » Post category slug overlapping pages

  • Resolved Josh


    I’m not sure what changed, but when my post category slug and a page slug are the same the pages won’t load. It will instead go to my category template.

    I tried changing the category base to something with no luck. What can I do to fix this problem and separate the two without renaming them?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You need to avoid replicating page & category names. Or switch back to the default permalink structure.

    Hmm, yes going back to the default permalink structure does fix this. The category base by default should go to index.php/category/{category_name}/ which shouldn’t overlap with a base structure using index.php/{post_name}. Correct?

    In theory, yes but permalink redirection is going to be based on slugs and, in this case {category_name} and {post_name} are the same. Hence the confusion.

    I finally tracked the problem down. The Yoast SEO plugin was suppressing the category base slug which was in turn conflicting with the pages that had duplicate slugs.

    I just clicked to disable that feature and now all is back in order. Not sure if it’s on by default, but something I’ve surely taken note of.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post category slug overlapping pages’ is closed to new replies.