﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking
777	Frage zu r9421	Ronald Parcinski	somebody	"  
{{{
#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 machen sollte, dann könnte man das über das Backend nach Wunsch konfigurieren

"	Bug/Fehler	closed	hoch	modified-shop-2.0.0.0	Shop	2.0.0.0	duplicate				
