Opened 10 years ago
Last modified 10 years ago
#777 closed Bug/Fehler
Frage zu r9421 — at Initial Version
| Reported by: | Ronald Parcinski | Owned by: | somebody |
|---|---|---|---|
| Priority: | hoch | Milestone: | modified-shop-2.0.0.0 |
| Component: | Shop | Version: | 2.0.0.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteCond %{HTTP_HOST} !\.(.*)\. [NC]
#RewriteCond %{HTTP_HOST} !^localhost [NC]
#RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
##-- ensure www.
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
##-- ensure https
#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Bei ensure www. fehlt meiner Meinung nach die Condition für https Umleitung als Oder Verknüpfung
Also so:
##-- ensure www.
#RewriteCond %{HTTPS} off [OR]
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Das müsste meiner Meinung nach jeweils auch noch rein, damit das auch unter localhost funktioniert:
#RewriteCond %{HTTP_HOST} !^localhost [NC]
Frage ist ob man diese Umleitungsregeln nicht in PHP machensollte, dann könnte man das über das Backend nach Wunsch konfigurieren
Note:
See TracTickets
for help on using tickets.
