RewriteOptions inherit RewriteEngine on RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^streetinfo\.lu$ [OR] RewriteCond %{HTTP_HOST} ^www\.streetinfo\.lu$ RewriteCond %{REQUEST_URI} !^/.well-known/ [NC] RewriteRule .* https://www.streetinfo.lu%{REQUEST_URI} [R=301,L] RewriteRule ^index\.php$ https://www.streetinfo.lu/ [R] RewriteRule ^computing/lazarus/index\.php$ https://www.streetinfo.lu/computing/lazarus/ [R] RewriteCond %{HTTPS} =on RewriteCond %{HTTP_HOST} ^streetinfo\.lu$ RewriteRule .* https://www.streetinfo.lu%{REQUEST_URI} [R=301,L] RewriteRule ^index\.php$ https://www.streetinfo.lu/ [R] RewriteRule ^computing/lazarus/index\.php$ https://www.streetinfo.lu/computing/lazarus/ [R] Options -Indexes