I currently have the following in my .htaccess file that redirects all requests to the SSL version of the site:
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteRule ^(.*) https://www.mydomain.com$1 [R=301,nc]
Now, I'd like to redirect calls to my current root URL - only when it has a querystring attached - to a new url with the same querystring. Example:
https://www.mydomain.com/?foo=bar redirected to:
https://www.mydomain.com/new_mapping/?foo=bar
Whereas requests without a querystring continue to go to https://www.mydomain.com/
Thanks in advance for any help.