Difference between revisions of "How to instantly redirect from one webpage to another"

From steamWiki
Jump to: navigation, search
Line 1: Line 1:
If you want to visit http://server and have it automatically, instantly, redirect the user to http://server/new/destination run ''sudo nano /var/www/html/index.html'' and enter the following into the file
+
If you want to visit http://server and have it automatically, instantly, redirect the user to http://newserver/new/destination run ''sudo nano /var/www/html/index.html'' on the http://server machine and enter the following into the file
 
  <nowiki><head>
 
  <nowiki><head>
         <meta http-equiv="refresh" content="0; url=http://server/new/destination/" />
+
         <meta http-equiv="refresh" content="0; url=http://newserver/new/destination/" />
 
</head></nowiki>
 
</head></nowiki>
  

Revision as of 11:10, 9 July 2019

If you want to visit http://server and have it automatically, instantly, redirect the user to http://newserver/new/destination run sudo nano /var/www/html/index.html on the http://server machine and enter the following into the file

<head>
        <meta http-equiv="refresh" content="0; url=http://newserver/new/destination/" />
</head>