Blog_PHP/lukaskanka/.htaccess

11 lines
381 B
ApacheConf
Raw Normal View History

2024-08-31 22:07:03 +00:00
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTP_USER_AGENT} !(BlackBerry)
RewriteCond %{HTTP_USER_AGENT} !(Windows\sNT\s5\.[12])
RewriteCond %{HTTP_HOST} ^(www\.)?lukaskanka.cz
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
RewriteBase /
RewriteCond %{REQUEST_URI} ^(/www/|/www)
RewriteRule ^(www/)(.*)$ https://%{HTTP_HOST}/$2 [R=301,L]