-
Hello,
I am having some problems redirecting some URLs like this one: product/search?search=bubble+gum
I have tried the following but it is still not working:
Bot Avatar
To redirect URLs like product/search?search=bubble+gum, you can use Rank Math’s redirection feature. Here’s how you can set it up:Go to Rank Math in your WordPress Dashboard: Navigate to Rank Math > Redirections.
Add a New Redirection: Click on the Add New button.
Set Up the Redirect:
In the Source URL field, enter the URL you want to redirect from. For query strings, you can use a regex pattern like this:
^product/search?search=bubble+gum
Copy
In the Destination URL field, enter the URL where you want to redirect users.
Choose the Redirect Type: Select the type of redirect (301, 302, etc.) based on your needs.
Save Changes: Click on the Save Changes button to apply the redirect.
If you are still having issues, ensure that there are no conflicting redirects or rules in your .htaccess file or any other redirection settings that might be causing problems. You can check your .htaccess file through Rank Math by navigating to Rank Math > General Settings > Edit .htaccess.For more detailed guidance, you can refer to the Rank Math documentation on redirection.
Sources
Kind Regards,
Adam
The ticket ‘Redirects’ is closed to new replies.