Contact

hs-icon-callcenter
Nous téléphoner
hs-icon-callcenter

Téléphonez-nous

Notre équipe de support vous assistera volontiers si vous avez des questions techniques ou administratives. Nous sommes ici pour vous personnellement !

 

+41 (0)84 800 80 80
(Appels depuis la Suisse 8 centimes / minute)

Hotline administrative

De lundi à samedi
9h à 12h
13h30 à 17h30
 

Hotline technique

De lundi à vendredi
8h à 17h30
Le samedi
9h à 16h

hs-icon-doc-write
Nous écrire
hs-icon-doc-write

Écrivez-nous

Afin de nous permettre de vous aider aussi rapidement et aussi bien que possible, nous vous remercions de formuler votre demande aussi précisément que possible. Vous pouvez également nous joindre à l’adresse e-mail suivante: support@hoststar.com

Tous les champs marqués d'un «*» sont obligatoires et doivent être remplis.

 

301 Redirect with htaccess

Assistance > > 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.

Cet article vous a-t-il été utile?