Strato Domain umleiten www

Strato domain to www redirect instructions – Domain only reachable without www – Strato domain redirect

12. February 2020

Whoever creates a domain at Strato will have noticed that the address can only be called up without www. Even if the prefix is entered in the address bar of the browser, the domain will be forwarded to the variant without www. This variant is also used for the search results of Google and other search engines. Although neither SEO nor performance disadvantages are to be expected here, the variant without www still appears to be an anomaly in the eyes of one or the other domain owner.

 

From the domain without www to the domain with www

 

If you miss the prefix, you can switch to the variant with www by making an entry in htaccess. This procedure works not only with Strato, but also with other providers (if the “problem” exists).

To change to the www variant, the following must be inserted in the htaccess:

 

 

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\\.DEINEDOMAIN\\.de$
RewriteRule ^(.*)$ http://www. DEINEDOMAIN.de/$1 [L,R=301]

Do not forget to replace the DEINEDOMAIN with the respective domain.

 

From domain with www to domain without www

 

Of course, the whole thing also works in reverse. If you want to switch from the www variant to the variant without www, you should add the following section to the htaccess file:

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

Here too, should not be forgotten to replace the placeholder with that of the respective domain.

If no htaccess is available…

If there is no htaccess (yet) in your root directory, you can create one yourself. To do so, open a simple word processing program like TextEdit or Notepad, insert the section and save the document under the file name “.htaccess”. Then you can upload the file via FTP into the root directory.

Any more questions? Suggestions for improvement or suggestions for further articles? Then write it in the comments.

SIE KÖNNEN SICH BEI UNS BEDANKEN!

Sofern Ihnen der Artikel geholfen hat, können Sie sich mit wenig Aufwand revanchieren!

 

Bitte hinterlassen Sie uns eine positive Bewertung.

 

Falls Sie Fehler entdecken oder ein Artikel unvollständig ist, freuen wir uns über einen Kommentar.

Bewertung erstellen

Comments

Tell us what you think! Reply now

Your email address will not be published.