Redirect path only if URL doesn’t have query parameters
-
Hi,
I’d like to redirect /checkout/ to /account/ in case a user types it in manually. However, I would need the plugin to honor query parameters, e.g., /checkout/?item=1, and exclude those URLs from the rule.
When I set up a redirect from /checkout/ to /account/, and a user clicks on the actual checkout link, it will result in /account/?item=1, which, of course, won’t work.
Is there a way to create a redirect that only redirects the page if it’s just /checkout/ while ignoring the redirect if the URL has query parameters, or is that technically not possible?
Thanks much!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.