Requirements:
All visits http://www-sit.abc.com/haibian Jump to http://www-sit.abc.com/ newhaibian
(Recommended tutorial: nginx tutorial)
Specific method:
1. Open the configuration file
vim /usr/local/nginx/conf/vhost/www-sit.abc.com.conf
2. Add Configuration
# 在server字段添加配置 rewrite ^/haibian /newhaibian permanent;
3. Save configuration
# 保存退出 # /usr/local/nginx/sbin/nginx -t # /usr/local/nginx/sbin/nginx -s reload
The above is the detailed content of What is the method for nginx to implement page jump?. For more information, please follow other related articles on the PHP Chinese website!