<-- Back

Shopware 5

SHOPWARE 5 HTTPS REDIRECT “TO MANY REDIRECTS”

Wenn diese Weiterleitung in der .htaccess die Fehlermeldung “To many redirects” ausgibt

RewriteEngine on

# Leitet Adressen ohne “www” auf Adresse mit “www” um
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

# Leitet Adressen ohne SSL auf Adresse mit SSL/https um
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]

dann versucht diese Regel.

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Read more and subscribe

Here’s more cool stuff

Read what's next.