我有2個網址說thinkingmonkey.me
和thinkingmonkey.com
都具有IP地址127.0.0.1(A.K.A本地主機)。的mod_rewrite`Redirect`怎麼樣?
我想對任何thinkingmonkey.com
請求重定向到thinkingmonkey.me
。
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /mysite
ServerName thinkingmonkey.me
ServerAlias www.thinkingmonkey.me
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
Options -Indexes +FollowSymLinks
RewriteEngine On
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName thinkingmonkey.com
Redirect thinkingmonkey.com http://thinkingmonkey.me/
# Redirect/http://thinkingmonkey.me/ #have even tried this
ServerAlias www.thinkingmonkey.com
RewriteEngine on
</VirtualHost>
當我嘗試訪問thinkingmonkey.com
URL不重定向到thinkingmonkey.me
。在布勞爾的地址欄中的網址仍然thinkingmonkey.com
。
我在做什麼錯?
* *所以很多重複。 – 2012-01-15 08:44:37