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

alexh-name/0101010.one/master/old/nyx/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} !=nyx.cosmofox.net
RewriteRule (.*) http://nyx.cosmofox.net/$1 [R=301,L]

Redirect 301 /index.html /blog/

#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