你可以用nginx ??网页跳转 ??????www.old.com ??跳到 ?www.new.com ??
- 下载nginx
修改配置文件
vim ??/usr/local/nginx/conf/nginx.conf
修改内容
server {
listen 80;
server_name localhost:
}
localhost / {???????root ???????html; ??????index index.html ???index.htm; ??????rewrite ????old.html ??new.html ?redirect; ???????} ?3.重起服务/usr/local/nginx/sbin/nginx -s reload ?4.ok ???啦
nginx ??网页跳转
原文地址:http://blog.51cto.com/14066708/2315255