Remove the dates from the links

  • Hello

    I would like to remove the dates from the links, but be careful not to generate 404 on the old links.
    Site.com.br/AAAA/MM/post PARA Site.com.br/post

    How do I do this with Rank Math?

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

    Thank you for contacting Rank Math today.

    You can make use of the following regex redirection via the Rank Math > Redirections module:

    Source URLs: /([0-9]{4})/([0-9]{2})/(.+)
    Type: Regex
    Destination URL: http://yourdomain.com/$3

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    Thanks Michael

    but its make erro 404

    Hi there,

    Thanks for the reply.

    Is it possible that you forgot to replace http://yourdomain.com with your actual domain name?

    If the issue persists, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

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

You must be logged in to reply to this ticket.