github.com/localhostbase/localhostdev@v1.4.1/pkg/ddevapp/testdata/TestHttpsRedirection/.htaccess (about) 1 # DirectorySlash off 2 # DirectoryIndex index.php 3 # DirectorySlash off 4 # DirectoryIndexRedirect on 5 # Redirect to HTTPS before Apache mod_dir DirectorySlash redirect to HTTP 6 RewriteCond %{HTTP:X-Forwarded-Proto} =https 7 RewriteCond %{LA-U:REQUEST_FILENAME} -d 8 RewriteRule ^/(.*[^/])$ https://%{HTTP_HOST}/$1/ [R=301,L,QSA] 9