htaccess 301 redirect everything except subdomain?
snippet in htaccess

htaccess 301 redirect everything except subdomain?

user9421

RewriteEngine On
RewriteCond %{HTTP_HOST} !^subdomain\.domain\.com
RewriteRule ^(.*)$ http://www.another-domain/$1 [R=301,L]