bulk redirection from /%year%/%monthnum%/y%/%postname%/ to /%postname

#503865
  • Hi, how are you? I need to change my permalink structure to some more SEO friendly, so I changed my permalink structure from wp-admin. Now I need to set redirections, but can’t find the documentation with names to make a regex redirection.
    I need to change permanently from “/%year%/%monthnum%/%day%/%postname%/” to “/%postname%/ r
    Could you tellme please how to do it? I’ve been reading the documentation but can’t find what I need.

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

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    To create those redirections you can use the following settings on our Redirections module:

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

    You can follow the link below to learn how to add Regex Redirects in Rank Math:
    https://rankmath.com/kb/how-to-use-regex-redirects/#how-to-add-regex-redirects

    Hope this helps solve your issues. Please don’t hesitate to let us know if you have any other questions.

    Thank you.

    ​​​​​​​

    \d{4}/\d{2}/\d{2}/(.*) and /$1/ worked for me, regards!

    but still have to redirect from /notas/85940/postname to /postname,

    Hello,

    Please follow this redirection rule instead:

    Source URL: nota/(.*)/
    Type: Regex
    Destination URL: https://www.codigobaires.com.ar/$2

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    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 4 replies - 1 through 4 (of 4 total)

The ticket ‘bulk redirection from /%year%/%monthnum%/y%/%postname%/ to /%postname’ is closed to new replies.