RewriteEngine on
RewriteCond %{HTTP_HOST} ^md.swamid.se [NC]
RewriteRule ^(.*)$ http://mds.swamid.se/$1 [L,R=301,NC]