-
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/postHow do I do this with Rank Math?
-
This topic was modified 5 years, 7 months ago by
André Albuquerque.
-
This topic was modified 5 years, 7 months ago by
-
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/$3Looking 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.
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/$3Looking 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.
Hi,
Can you please try this?
Source URLs: \d{4}/\d{2}/(.+)\.html(.*) Type: Regex Destination URL: $1/$2We 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.
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.
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/Fc5V0vDo 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 🙂
You must be logged in to reply to this ticket.