Remove date in url without 404 errors

#560132
  • Resolved Anonymous
    Rank Math free

    Hi,
    I would like the date Fram my url. My website is over 12 years old with any posts, so everything as to work after I changed the permalink. If I google on this subject I get several options. Use a plugin and make redirects and ad some code to .htaccess.
    Which is the most reliable and save to use.
    Like to hear from you.
    Kind regard
    John

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting us and bringing your concern to our attention.

    After changing the permalink structure, you can add the following redirection rule in the Rank Math Redirections module:

    Source: ^([0-9]+)/([0-9]+)/([0-9]+)/(.*)$
    Match: regex
    Destination: /$4
    

    This will redirect URLs like http://yourdomain.com/2023/04/16/sample-post/ to http://yourdomain.com/sample-post/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Remove date in url without 404 errors’ is closed to new replies.