RewriteEngine on
RewriteCond %{HTTP_HOST} ^qt5glenys.com 
RewriteRule (.*) https://www.qt5glenys.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index.php 
RewriteRule ^(.*)index.php$ https://www.qt5glenys.com/$1 [R=301,L]
ErrorDocument 404 /404.php
# Canonical HTTPS/non-WWW
<IfModule mod_rewrite.c>
	RewriteCond %{HTTPS} off [OR]
	RewriteCond %{HTTP_HOST} ^\.qt5glenys\.com [NC]
	RewriteRule (.*) https://www.qt5glenys/$1 [L,R=301]
</IfModule>
