ErrorDocument 404 /404.php

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\.)?wasah.cz

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}