Wildcard problem
-
Hello,
I’m trying to redirect all the Search result pages (mydomain.com/?s=search_query) to my home page (mydomain.com)I tried with the following regular expressions:
^/?s=(.*)$
and
/?s=(.*)
asking the plugin to redirect to mydomain.com/
but they both redirect to https://www.mydomain.com/?https://www_mydomain_com/
(Please, note the underscores in the second part of the url)
How can I create a wildcard redirection so that, regardless of what appears after mydomain.com/?s= the user is always redirected to the homepage (without any additional part in the url)?
Thank you in advance, Matteo
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Wildcard problem’ is closed to new replies.