RewriteEngine On # skip www domain RewriteCond %{HTTP_HOST} !^www\. # match the Dev website RewriteCond %{HTTP_HOST} ^dev\. [NC] # send them to the other folder RewriteRule ^/(.*)$ /home_disk/vhosts/dev.athletesconnection.com/www [L]