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]

 

Vlastimil Pošmura, 2019