Remove the dates from the links

#38637
  • Resolved André Albuquerque
    Rank Math free

    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 15 replies - 1 through 15 (of 16 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.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    ok, done. Look the Sensitive Data

    Hello,

    Thank you for contacting Rank Math today.

    It looks like your custom permalink structure also contains a .html, please change the code to this:

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

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello, not work 🙁 I will post the print in Sensitive

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Todd
    Rank Math free

    Hi,

    Can you please try this?

    Source URLs: \d{4}/\d{2}/(.+)\.html(.*)
    Type: Regex
    Destination URL: $1/$2

    We have tested it from our end and it works.

    If that doesn’t work, we might need to take a closer look at the settings. Please include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    We look forward to hearing back from you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Thanks, i sent there

    Hello,

    Thank you for contacting Rank Math today.

    We are checking this further and we will get back to you in a short while.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Todd
    Rank Math free

    Hi,

    I am sorry but your valid URL structure is `domain.com/xxxx/xx/post-name.html/

    If you redirect something to domain.com/post-name.html/ it will result in a 404 which is not good for SEO or user experience.

    With that said, you just need to enable this regex we edited to make it work:
    https://i.rankmath.com/Fc5V0v

    Do note that the resulting pages will show a 404 since they do not exist yet.

    Hello

    I believe that it is now correct, you will do more tests.

    When I am logged in I receive a message “Redirection Debugger”, this delay in “5 seconds” is also for who accesses the site?

    I didn’t understand exactly that “Do note that the resulting pages will show a 404 since they do not exist yet.”

    Thanks 🙂

Viewing 15 replies - 1 through 15 (of 16 total)

You must be logged in to reply to this ticket.