Tuesday, April 18, 2017

Forcing HTTPS

This is how to force HTTPS in either .htaccess or httpd.conf (e.g., /etc/httpd/conf):


RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

OR

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

# RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]


$ service httpd restart


To force selectively on URL paths view this thread..

No comments:

Post a Comment

How to perform Blade 200 S Upgrades; Video Collection

Here are a few videos showing Blade 200 S upgrades.  Some of the videos are older showing Mircoheli upgrades... however, I currently use Lyn...