girving/pentago/master/web/.htaccess - Htaccess File

girving/pentago/master/web/.htaccess

RewriteEngine On

# Turn on HSTS
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS

# Redirect http to https
RewriteCond %{HTTPS} !^on$
RewriteRule (.*) https://perfect-pentago.net/$1 [R,L]

# Redirect www.* et al. to https://perfect-pentago.net.
RewriteCond %{HTTP_HOST} !^perfect-pentago.net$
RewriteRule ^(.*)$ https://perfect-pentago.net/$1 [R]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, HTTPS

Comments

Apache