httpd服务器设置域名直接跳转
<VirtualHost *:80>
ServerAdmin xxx@qq.com //管理员
ServerName www.xxx.com //在用的域名,已经准备弃用的
RewriteEngine on //是否可以跳转,设置成可以跳转
RewriteRule ^(.*) http://www.xxxxx.com //跳转到正常的网站
</VirtualHost>
张春平的个人博客
<VirtualHost *:80>
ServerAdmin xxx@qq.com //管理员
ServerName www.xxx.com //在用的域名,已经准备弃用的
RewriteEngine on //是否可以跳转,设置成可以跳转
RewriteRule ^(.*) http://www.xxxxx.com //跳转到正常的网站
</VirtualHost>