Contact

hs-icon-callcenter
Chiamare
hs-icon-callcenter

Contattateci telefonicamente

Che abbiate questioni di carattere tecnico o amministrativo, il nostro team di assistenza sarà lieto di aiutarvi. Saremo al vostro servizio personalmente!

 

+41 (0)84 800 80 80
(Chiamate dalla Svizzera 8 cent./al minuto)

Hotline amministrativa

Dal lunedì al sabato
dalle ore 9.00 alle ore 12.00
e dalle ore 13.30 alle ore 17.30
 

Hotline tecnica

Dal lunedì al venerdì
dalle ore 8.00 alle ore 17.30
Il sabato
dalle ore 9.00 alle ore 16.00

hs-icon-doc-write
Scrivere
hs-icon-doc-write

Inviateci un’e-mail

Affinché possiamo assistervi quanto più rapidamente e al meglio delle nostre possibilità, vi preghiamo di formulare la vostra richiesta nel modo più dettagliato possibile. Siamo raggiungibili anche presso il nostro indirizzo e-mail: support@hoststar.com

Tutti i campi contrassegnati da un «*» sono obbligatori e devono essere compilati.

 

301 Redirect with htaccess

Supporto > > Domain information

Sometimes it is necessary to set up a permanent redirect (301). We recommend storing this via a .htaccess file.

Follow these steps:

1. Open editor

Open Notepad or a similar text editor (in Windows: «Start – Run – "notepad" – OK»)

2. Content

Create a file with the following contents:

Redirect to domain with www

Redirect domain.com to www.domain.com

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

Copy the italicized text into your file and replace «domain.com» and «www.domain.com» with the desired domain name.

Redirect to domain without www

Redirect www.domain.com to domain.com

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]

Copy the italicized text into your file and replace «domain.com» and «www.domain.com» with the desired domain name.

3. Save .htacces file

Save the file with «File – Save As...». The filename should be «.htaccess», the file type should be «All Files». Be sure to save the file in «ANSI format».

Load now the «.htaccess» file via FTP into the ROOT-folder of the domain.

Questo articolo è stato utile?