Get the App
SLTechnology News&Howtos  ›  Servers  › 

Nginx Web Page Jump

Shulou Source: shulou.com Published: 2022-06-03 03:11:46 10月03日 Update

When you let your old page jump to a new page to prevent the loss of visits

You can use the nginx page to jump to www.old.com and jump to www.new.com

Download nginx

Modify the configuration file

Vim / usr/local/nginx/conf/nginx.conf

Modify content

Server {

Listen 80

Server_name localhost:

}

Localhost / {

Root html; index index.html index.htm; rewrite old.html new.html redirect;} 3. Restart the service / usr/local/nginx/sbin/nginx-s reload 4.ok once our company's website was blocked! Change the field to keep the visitor server {listen 80; server_name localhost; rewrite ^ / (. *) $http://www.whatav.com/$1; } localhost / {index www.xo.com www.xxoo.com}

Tags: Pages companies content fields files websites visitors services churn configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Redmi MariaDB Microsoft Huawei