How to redirect your web page to another using the index.html file

For various reasons, we may be forced to redirect our website to a new destination. In this manual we will show you how to do it using an "index.html" file.

Will it be reflected in the browser?

The user will have accessed 'swhosting.com' and will be redirected to 'swhosting2.com' as the browser URL will change automatically.

What do I need to upload an index.html file?

First you must have a domain, a hosting service, an FTP account created and the Filezilla client. You can consult our manuals for more information (FTP account management, Create Hosting service.

How do I create the index.html file?

1 Create a text document on your computer with the following lines of code substituting the domain "manuals.com" for the domain you want the user to address.

<head>
     <meta http-equiv="Refresh" content="0;url=http://www.manuales.com">
 </head>
 <body>
 </body>

2 Once created, save the file by calling it "index.html".
3 Upload the file to your server via FTP to the folder "data / web"


2024 SW Hosting. All rights reserved. The prices shown on the website do not include any applicable taxes.