RewriteEngine On RewriteCond %{HTTPS} on [AND] RewriteCond %{REQUEST_URI} ^/index\.html RewriteRule (.*) https://%{HTTP_HOST}/index\.html