• /blog/category/mine/ now returns 404

    this is showing in the blog archive page

    what do I do to fix it?

    I had Remove /category/ in URL

    I had flushed all caches

    I nad turned off Remove /category/ in URL again and it’s still ALL broken both /blog/category/mine/ and /blog/mine/

    • This topic was modified 1 year, 6 months ago by mayy3321.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter mayy3321

    (@mayy3321)

    Another cat redirects to a post that happened to start with the same slug

    This is impossible

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    be careful when using these options to remove parts of the URL.

    If you have a post slug with the same slug category / product category, this will create a URL conflict.

    This is probably the issue here.

    Thread Starter mayy3321

    (@mayy3321)

    No, I had cat= abc-def

    post=abc-def-and-some-ohter-things

    Anyway 404 is for every way of the cat archive.

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    If you disable SEOPress, then you flush your permalinks, do you still have the issue?

    If this is the case, well SEOPress is not the culprit.

    Thread Starter mayy3321

    (@mayy3321)

    no

    only w/ SEOPress

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    Can you take a screenshot of SEO, Advanced, Advanced tab please?

    Thx

    Thread Starter mayy3321

    (@mayy3321)

    Worked it out. You are ignoring custom permalinks structure ( haven’t tested other ones)

    There’s no “flush your permalinks” in the permalinks page. Because it’s not cached. You can save it again but it makes no difference.

    When using custom permalinks such as “blog/%postname%” then SEOPress deletes the whole thing when you turn on “Remove /category/ in URL”. So you interpret it as a change from /blog/category/cat to /cat

    However the rest of WP makes it a change from /blog/category/cat to /blog/cat which is how most people imagine remove “category” means.

    So it’s a definite bug in SEOPress Remove /category/ in URL option.

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    When you check the Remove /category/ option it means we will remove the Category Base (Settings, Permalinks, Category base).

    This value is defined from the Permalinks settings. The default is category.

    Note that this option only acts on post category archives, not singular post.

    Hope that makes sense.

    Thread Starter mayy3321

    (@mayy3321)

    Actually no that is not true. Category Base is empty.

    View post on imgur.com

    Custom Structure such as “blog/%postname%” results in WP using /blog/category/cat

    Remove /category/ in URL means remove only /category/ which is what the rest of WP uses.

    You remove /blog/category/ and WP breaks.

    The rest of WP makes it a change from /blog/category/cat to /blog/cat

    You have moved it however to /cat so WP ends up with generated 404 links

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    Sorry but as mentioned in the description above the Category base field:

    “If you leave these blank the defaults will be used.”

    -> default is category

    “Custom Structure such as?“blog/%postname%” results in WP using?/blog/category/cat” -> no, WordPress will display your URLs like this https://example.com/blog/post-title

    But even if you enter manually /category/ in your custom structure, this will change nothing as our option to remove /category/ only applies to category archive pages.

    If you get 404 errors, this is probably due to something else.

    Thread Starter mayy3321

    (@mayy3321)

    I’ve showed you the exact page that has the link to the category archive. I’ve showed you exactly what the link pointed to Before & After using your setting. I’ve showed you exactly why after the setting You have changed the URL And it now points to a 404 and where the new page has gone.

    I’ve even showed the exact setting you have ignored and why the error happens.

    And I’ve showed you this on a site where you are The only pluggin activated.

    And you’ve decided to ignore all of that.

    I actually have the link that is exactly like that format above And you still say it doesn’t exist. Ridiculous.

    • This reply was modified 1 year, 5 months ago by mayy3321.
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Blog categories now return 404’ is closed to new replies.