Here is a working example of redirecting all but www subdomains to one folder “/var/www/vhosts/sunset-station.com/httpdocs/new/sunset”
ServerAlias *.sunset-station.com RewriteEngine on RewriteCond %{HTTP_HOST} !^www.* [NC] RewriteCond %{HTTP_HOST} ^([^\.]+)\.sunset-station\.com RewriteCond /var/www/vhosts/sunset-station.com/httpdocs/new/sunset -d RewriteRule ^(.*) /new/sunset/$1 [L]This entry was posted in Uncategorized. Bookmark the permalink.