Print at Dec 18, 2025, 2:13:24 PM

Posted by shoulders at Oct 15, 2022, 3:07:48 PM
Re: Secure Web Site
All is working well. I no longer use http on my websites so I use the following to get rid of any old links.


RewriteEngine On

## If https is off
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

## Redirect non-www to www
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]