1

How to force a subdomain as a default domain but keep other subdomains working?

view story
linux-howto

http://serverfault.com – I have a WordPress site installed at http://www.example.com and another testing WordPress site at http://test.example.com. I've successfully made http://www.example.com redirect to http://beta.example.com with this .htaccess code: RewriteCond %{HTTP_HOST} !^beta\.example\.com RewriteRule ^(.*)$ http://beta.example.com/$1 [R=301,L] However, when trying to go to http://test.example.com it forces it to http://beta.example.com/test/ with a 404 error. Is there a way to have this beta redirect but still keep my WordPress site at http://test.example.com working? (HowTos)