put this in your .htaccess file Options +FollowSymLinks RewriteEngine On RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteCond %{HTTP_HOST} ^(www\.)?(anothersite)\.com$ [NC] RewriteRule ^(.*)$ /%2/$1 [QSA,L] Code (markup): Hope this can help
Or you can doit in php (if your hosting offers you php) like this on the first domain root directory put the next index.php file: index.php content follows: <?php header('Location: http://www.secondomain.com/'); ?> Code (markup):