-
Hi there,
We’re running into an issue with the redirection feature in Rank Math.
Our URLs include product parameters like this:
/product/name?attribute_pa_color=Beige
These parameters are used for filters on the site.When setting up a redirect for such URLs, the redirect fails and returns a 404 error.
However, if we remove the question mark (?), the redirect works — but of course, this isn’t the correct URL that users or search engines are accessing.
Since we’ve recently migrated from Yoast, we now have several thousand of these URLs resulting in broken redirects. Manually fixing them isn’t an option.
Could you advise how we can correctly redirect URLs that include query parameters?
Would it be an option for us to receive a piece of code or snippet to help resolve this issue programmatically?Thanks in advance!
The ticket ‘Issue with redirecting’ is closed to new replies.