HTTP to HTTPS redirect
Checks if HTTP requests redirect properly to HTTPS.
Warum ist das wichtig?
Without a redirect, visitors and search engines can access your site via HTTP, leading to duplicate content and split link value. Google counts both versions as separate URLs.
Wie beheben Sie es?
Add a server-side 301 redirect from http:// to https://. In Apache do this in .htaccess; in Nginx in the server block. Also make sure www and non-www are consistent.
Dieser Check bewertet von 0 bis 100. Unter 50 ist ein Fail, 50 bis 89 eine Warnung, 90 oder höher ist gut. Nach jedem Crawl sehen Sie die Note pro Seite im Report, mit einer kurzen Erklärung.
Häufige Fragen
Checks if HTTP requests redirect properly to HTTPS.
Without a redirect, visitors and search engines can access your site via HTTP, leading to duplicate content and split link value. Google counts both versions as separate URLs.
Add a server-side 301 redirect from http:// to https://. In Apache do this in .htaccess; in Nginx in the server block. Also make sure www and non-www are consistent.
Beispiel
Kopieren Sie den Code unten und passen Sie Domain, Markenname und Inhalt an Ihre Situation an.
# Nginx: HTTP → HTTPS redirect (301 permanent)
server {
listen 80;
server_name yourdomain.com www.yourdomain.com;
return 301 https://www.yourdomain.com$request_uri;
}
# Apache .htaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]