I have a problem trying to redirect a sub-domain to my main domain.
my redirect is as follows:
# ------------------------------------------------------------------------
# points all subdomain requests to the main domain file structure
# and tags the language indicator query tag to the end
# ------------------------------------------------------------------------
RewriteCond %{HTTP_HOST} ^sv.mysite.com$ [NC]
RewriteRule ^sv/(.*)$ http://www.mysite.com/$1?lang=sv
Problem is when the URL is just //http:sv.mysite.com
I get: //http:www.mysite.com
without the ?lang=sv tagged on
It works ok if there is something after the mysite.com to be picked up for the $1 parameter but if there is nothing it seems to ignore the ?lang=sv
Any help would be appreciated....