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 www.me.com I want to url to change to me.com. How can I accomplish that.
我目前的查阅文件如下:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(.*.)?me.com [NC]
RewriteRule ^(.*)$ portfolio/me/$1 [L]