-
Hello how are you? Thanks for your wonderful plugin.
I need help to know how to do a redirect. Our old CMS included some data that wordpress doesn’t have, so we have urls that are throwing 404 errors.
-
Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
You mentioned regex redirection, but from your example URLs, they can be redirected using the “Exact” method.
Could you please confirm if you’re redirecting bulk URLs like removing the /nota/43449/ from your posts?
If so, here’s the regex redirect you can use:
Source: nota/43449/(.*) Destination: https://yourwebsite.com/$1
Please replace
yourwebsite.com
with your actual website name and you can use the same logic for the other URLs.Let us know how this goes.
Thank you.
Thank you for your answer, no, I need to remove “/nota/” and the number, so if link is “domain.com/nota/43449/entregaron-escrituras-a-vecinos-de-almirante-brown” the redirection points to “domain.com/entregaron-escrituras-a-vecinos-de-almirante-brown”
Hello,
If you want to remove the
/nota/43449/
only from this specific URL you’ve shared then you can set a 301 exact redirection type from nota/43449/entregaron-escrituras-a-vecinos-de-almirante-brown tohttps://yourdomain.com/entregaron-escrituras-a-vecinos-de-almirante-brown
.But if there are many URLs which have the same
/nota/43449/
and you want to redirect them all from/nota/43449/
towithout /nota/43449/
then you can apply the regex redirection shared by my colleague above.For the tag URL, you can try to use the following regex on your redirection module:
source: /tag/66551/(.*) Match: Regex Destination: https://yourwebsite.com/tag/$1
Let us know how it goes. Looking forward to helping you.
Thank you.
Thank you but it doesn’t work, I need something like “nota/(.*)/(.*)”
Hello,
Can you please try to replace the regex with the following one and see if that works for you?
Source: nota/([0-9])*/(.*) Match: Regex Destination: https://yourwebsite.com/$2
Let us know how it goes. Looking forward to helping you.
Thank you.
Thank you very much! It works, but sends the traffic to homepage, I only want to remove the “nota” and “$number” part of the url
Hello,
The regex redirection I’ve shared above should redirect your
https://yourdomain.com/nota/43449/entregaron-escrituras-a-vecinos-de-almirante-brown
URL tohttps://yourdomain.com/entregaron-escrituras-a-vecinos-de-almirante-brown
.But if it is not working then we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
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/
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.
The ticket ‘regex redirection’ is closed to new replies.