Hello,
I apologize for the issue you are facing with setting up your regex redirects. Yes, it is possible to create regex redirects with exceptions, but it requires a bit of careful crafting of your regex patterns.
In your case, you want to redirect most URLs that match taller-mecanico-en-(.*)
to https://rankmath.com/wp-content/uploads/2022/10/add-regex-redirect-1.jpg while specifically redirecting the four exceptions to
https://rankmath.com/wp-content/uploads/2022/10/add-regex-redirect-1.jpg.
Here’s how you can set this up:
-
Redirect for Exceptions: First, create a regex rule for the exceptions:
-
Redirect for General Case: Then, create a second regex rule for the general case:
Important Notes:
- The order of the rules matters. Make sure the exception rule is processed before the general rule. This way, if a URL matches one of the exceptions, it will be redirected accordingly before it reaches the general redirect.
- Test your regex patterns using tools like regex101 to ensure they work as expected before applying them on your site.
If you have any further questions or need assistance with the setup, feel free to reply to this ticket, and a human agent from our support team will assist you further!
Sources:
How to Use Regex Redirects in Rank Math » Rank Math
How to Set Up Redirections » Rank Math
THanks, is wokrs!
Another question…
To redirect /informacion/neumaticos-* to https://comprardesbrozadora.com/neumaticos/
Regex: informacion/neumaticos(.*)
Not work 🙁
Hello,
It seems that you have already marked this as resolved.
The redirect is already working for /informacion/neumaticos-(.*)
Please clear your website and server’s cache for troubleshooting. You can also try a different browser to see the changes.
Looking forward to helping 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.