htaccess mod_rewrite: Redirect all subdomains, exclude some
snippet in htaccess

htaccess mod_rewrite: Redirect all subdomains, exclude some

user6081

RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
RewriteCond %{HTTP_HOST} !^dev\.example\.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]