brycenrogers/cvsite/master/public/.htaccess - Htaccess File

brycenrogers/cvsite/master/public/.htaccess

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www.(.*)$ [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www.(.*)$ [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, HTTPS

Comments

Apache