Hi
Apologies if this has be answered before, I'm new Linux hosting
I'm trying to redirect any URL on a spare domain i have, to the root of my main domain. However it seems to retain the querystrings of the spare domain and append them to my main domain.
I'm currently using
RewriteCond %{HTTP_HOST} ^spare-domain.co.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www.spare-domain.co.uk$
RewriteRule ^(.*)$ http://www.maindomain.co.uk [R=301,L]
Any help would be much appreciated.
Thanks in advance.
Dan