|
|||
![]()
Hallo allerseits,
unter https://hstspreload.org/ kann man vor Aktivierung für HSTS (HTTP Strict Transport Security) überprüfen, ob die Konfiguration in der .htaccess für einen Eintrag in die Preload-Liste korrekt ist. Die Preload-Grundkonfiguration erwartet hier (genau in dieser Reihenfolge): 1. Die Umleitung der Domain (ohne Subdomains) auf https: Aus http://domain.tld wird https:/domain.tld Mit dieser ersten Zeile wird sichergestellt, dass die Hauptdomain und alle Subdomains nur noch via https erreichbar sind. 2. Das spätere Einfügen der Subdomains (z.B. www.): Aus https://domain.tld wird https://www.domain.tld Beides wurde realisiert mit: Code:
## https://hstspreload.org/ RewriteEngine On RewriteCond %{HTTPS} off RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] ![]() Was mir nicht ganz klar ist: Im obigen Konstrukt gibt es 2x Redirect-301, ruft man http://domain.tld auf. Verwirrt das die Suchmachinen, kann man das irgendwie noch eleganter lösen? Gruß + Thx... |
Sponsored Links |
![]() |
Themen-Optionen | |
Ansicht | |
|
|
![]() |
||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
.htaccess redirect 301 funktioniert nicht | Barodscheff | Serveradministration und serverseitige Scripte | 4 | 07.02.2012 19:16 |
301 Redirect | erxx | Serveradministration und serverseitige Scripte | 6 | 18.10.2011 17:19 |
Quicktime-Film in die Seite einbinden | etux | (X)HTML | 0 | 10.05.2009 13:24 |
301 Umleitung wo und wie definieren | hubspe | Serveradministration und serverseitige Scripte | 4 | 12.03.2008 11:14 |
301 permanent redirect (.htaccess) | cpt.future | Serveradministration und serverseitige Scripte | 2 | 17.10.2007 18:27 |