SWPanel
Biblioteca
Biblioteca · Web How to redirect your website to another using the index.html file

Manuale SWPanel · Web

How to redirect your website to another using the index.html file

  • 1 min di lettura
  • Aggiornato il 02/12/2026
  • 3 sezioni
  • 810 letture

Inizia a leggere

In questa pagina 3 sezioni
  1. 1 How will it look in the browser?
  2. 2 Requirements to upload an index.html file
  3. 3 Creating the index.html file

For various reasons, it may be necessary to redirect your website to another address. In this manual, we explain how to do it using an index.html file.

How will it look in the browser?

When a user visits your original page (for example, swhosting.com), they will be automatically redirected to the new domain (for example, swhosting2.com). The URL in the browser will change to the new destination.

Requirements to upload an index.html file

Before creating and uploading the file, you need:

  • To have an active domain.
  • To have a hosting service.
  • To have an FTP account.
  • To have an FTP client installed, such as Filezilla.

For more information on how to configure these elements, check our manuals:

Creating the index.html file

  1. Open a text editor on your computer and create a new file.
  2. Copy the following code, replacing manuales.com with the domain to which you wish to redirect users:
<head>
    <meta http-equiv='Refresh' content='0;url=http://www.manuales.com'>
</head>
<body>
</body>
  1. Save the file with the name index.html.
  2. Upload the file to your server via FTP, placing it in the folder:
datos/web

Continua con questi manuali

Preferisci che te lo spieghi l'IA?

Dentro SWPanel scrivi il tuo dubbio e l'IA ti redige la guida per il tuo caso, a partire da manuali come questo. E se si inceppa, ti passa a un tecnico.