nette – Nastavení htaccess, pokud www není root

Od posmura

 

Order Allow,Deny
Allow from all

RewriteEngine On

RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
RewriteRule ^ https://www.EXAMPLE.cz%{REQUEST_URI} [R=301,L]

RewriteCond %{HTTP_HOST} ^(www\.)?EXAMPLE\.cz$
RewriteRule ^$ /www/ [L]

RewriteCond %{HTTP_HOST} ^(www\.)?EXAMPLE\.cz$
RewriteRule (.*) /www/$1 [L]