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

What is the method for nginx to implement page jump?

王林
Release: 2020-08-11 17:02:49
forward
4496 people have browsed it

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
Copy after login

2. Add Configuration

# 在server字段添加配置
rewrite ^/haibian /newhaibian permanent;
Copy after login

3. Save configuration

# 保存退出
# /usr/local/nginx/sbin/nginx -t
# /usr/local/nginx/sbin/nginx -s reload
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template