Moin
Wenn es
https://www.example.com sein soll, dann ändere
##-- redirect to https www-domain, when www is missing and no subdomain given and not using an ssl-proxy
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteCond %{HTTP_HOST} !\.(.*)\. [NC]
#RewriteCond %{HTTP_HOST} !^localhost [NC]
#RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
#RewriteCond %{SERVER_PORT} !^443$
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
zu
##-- redirect to https www-domain, when www is missing and no subdomain given and not using an ssl-proxy
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} !\.(.*)\. [NC]
RewriteCond %{HTTP_HOST} !^localhost [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
wenn nur
https://example.com, dann ändere
##-- redirect to https non-www-domain, when no subdomain given and not using an ssl-proxy
#RewriteCond %{SERVER_PORT} !^443$ [OR]
#RewriteCond %{HTTP_HOST} ^www\. [NC]
#RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
#RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
zu
##-- redirect to https non-www-domain, when no subdomain given and not using an ssl-proxy
RewriteCond %{SERVER_PORT} !^443$ [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
Aber bitte nur für eine der beiden Varianten entscheiden
Solltest du den Shop als Utf-8 installiert haben, dann ganz oben noch
##-- Default charset
#AddDefaultCharset UTF-8
AddDefaultCharset ISO-8859-15
ändern zu
##-- Default charset
AddDefaultCharset UTF-8
#AddDefaultCharset ISO-8859-15
Und dann wäre noch die Frage, ob der unterste Teil bei dir sinnvoll/notwendig ist?
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Gruss Timm