Redirection of thousands of urls with parameter in the slug

[ad_1]

Hello @angiefernandez,

Thank you for your query and we are so sorry about the trouble this must have caused.

Please try creating the following redirection:

Source URL: (.*)/?expand_domains=*
Type: Regex
Destination: https://www.mydomain.com/$1

After that, please apply this filter code to your website to avoid redirection loop: https://rankmath.com/kb/filters-hooks-api-developer/#redirect-remove-query

You may refer to this guide on how to add filters to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/

Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer