how can i redirect index.php?search= to the base url? I tried it with this code:
redirectMatch 301 ^/index.php?search=(.*) http://www.yoursite.com/
but then the page loops the code if i enter the site domain..
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
mod_alias does only work on the URL path and not the query:
So try mod_rewrite instead:
Or more general:
And if you want to use this rule the .htaccess file in your root directory, remove the leading slash from the patterns.