Home  >  Article  >  Operation and Maintenance  >  What is the method for nginx to implement page jump?

What is the method for nginx to implement page jump?

王林
王林forward
2020-08-11 17:02:494327browse

What is the method for nginx to implement page jump?

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete