I couldn’t found this answer in Stackoverflow, but I have two domains and two websites. The main website is lying in the root folder (@/var/www) and my other website lies in (@/var/www/portfolio). The problem is that when I type http://www.me.com I want to url to change to me.com. How can I accomplish that.
My current .htaccess file looks like below:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.*\.)?me\.com [NC]
RewriteRule ^(.*)$ portfolio/me/$1 [L]
Your
.htaccessshould look like this: