Year and date URL from blog post redirecting to home page

#522506
  • hello,

    I’ve been tearing my hair out on this one and hope you can help.

    I thought this was a permalinks issue, but I was able to solve my issue by disabling Rank Math.

    My permalinks are setup as:

    /%year%/%monthnum%/%postname%/

    If I view a post, the address is correct:

    http://example.com/2023/01/post-name/

    However, if I go back to the year or month sub-levels of the URL I’m redirected back to the home page, instead of seeing an archive.

    e.g.
    http://example.com/2023/01
    goes to
    http://example.com/

    If I turn off Rank Math, http://example.com/2023/01 works fine
    I also have another site with a similar setup (without Rank Math) that doesn’t have this problem.

    I’ve tried re-saving permalinks, turning off caching, and rewriting the htaccess file.

    Hope you can advise

    Thanks

    Rob

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    This usually happens when the date archives option is disabled.

    To fix this, please navigate to WP Dashboard > Rank Math > Titles & Meta > Misc Pages and enable the Date Archives as this option is disabled by default

    Date

    Here’s a link for more information:
    https://rankmath.com/kb/titles-and-meta/#date-archives

    I hope that helps.

    Thank you.

    Perfect!

    Thanks so much Reinelle, exactly what I needed 🙂

    Really appreciate you taking the time to help with this one – a simple fix is only simple when you know how to do it

    Have a great weekend

    Hello,

    You’re welcome.

    We are super happy that this issue is already resolved. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind us asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Year and date URL from blog post redirecting to home page’ is closed to new replies.