1. rewrite 要打開
2. vhost 加上下面程式,網址打 www.abc.idv.tw 網址會轉到 www.abc.com
<VirtualHost *:80>
ServerAdmin wsxrtgvbuikm@hotmail.com
DocumentRoot "/home/user/web"
ServerName www.abc.idv.tw
RewriteEngine on
RewriteRule ^(.*) http://www.abc.com$1 [R=301,L]
</VirtualHost>
3. 在 httpd.cnf 或 .htaccess 加上
Redirect /yahoo http://tw.yahoo.com -> 打上 www.abc.idv.tw/yahoo 會轉到 tw.yahoo.com
Redirect /google http://www.google.com
沒有留言:
張貼留言