Force HTTPS on one.com

Categories Computers & Networking, DIY & Repairs

One.com is offering Lets-encrypt certificates making websites more secure and awesome. However, as of today, it will not enforce HTTPS per default when users call on HTTP traffic.

To enforce HTTPS simply create .htaccess and paste below into the header of your .htaccess file. (click post to see code)

#Rewrite everything to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# BEGIN WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *