alexh-name/0101010.one/master/old/contact/src/.htaccess - Htaccess File

alexh-name/0101010.one/master/old/contact/src/.htaccess

DirectoryIndex index.html

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{ENV:HTTPS} !=on

RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} !=contact.cosmofox.net
RewriteRule (.*) http://contact.cosmofox.net/$1 [R=301,L]

#Prevent viewing of .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>

#Prevent directory listings
Options SymLinksIfOwnerMatch -Indexes

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css

On Github License

Files

Download PDF of Htaccess file
DEFLATE, ENV, HTTP_HOST, HTTPS, REQUEST_URI, SERVER_NAME

Comments

Apache