Forcing vistors to view your page with https

Even though Hostgator is supplying a FREE SSL certificate to all the websites on their servers, there still seems to be some work to do. Primarily this:

To force visitors to view your page with https, even if they do not specify it, you can create .htaccess rewrite rules to redirect to https. The following example code will force visitors to view your site with https:

Always use https for secure connections

Replace ‘www.example.com’ with your domain name

(as it appears on your SSL certificate)

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]

What the heck?

Would this go in the the ? and what exactly would it look like?

I have well over 100 websites that will need attention to this and I would love to find a fast, easy to make it happen.

Can an action be written for everyone? Isn’t this something that a lot of people have to deal with now?

https://support.hostgator.com/articles/ssl-certificates/ssl-setup-use/i-have-purchased-a-ssl-from-you-now-how-do-i-use-it


freewaytalk mailing list
email@hidden
Update your subscriptions at:

This is something that goes in an .htaccess file in the root of your hosting account. Actions cannot write files that begin with a dot (like .htaccess) so you’re going to need to break out a text editor. Are you hosting each of your 100 sites in a separate hosting account? Or are they all sharing one or more?

Walter

On Jul 13, 2018, at 5:10 AM, Robert Mitton email@hidden wrote:

Even though Hostgator is supplying a FREE SSL certificate to all the websites on their servers, there still seems to be some work to do. Primarily this:

To force visitors to view your page with https, even if they do not specify it, you can create .htaccess rewrite rules to redirect to https. The following example code will force visitors to view your site with https:

Always use https for secure connections

Replace ‘www.example.com’ with your domain name

(as it appears on your SSL certificate)

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]

What the heck?

Would this go in the the ? and what exactly would it look like?

I have well over 100 websites that will need attention to this and I would love to find a fast, easy to make it happen.

Can an action be written for everyone? Isn’t this something that a lot of people have to deal with now?

https://support.hostgator.com/articles/ssl-certificates/ssl-setup-use/i-have-purchased-a-ssl-from-you-now-how-do-i-use-it


freewaytalk mailing list
email@hidden
Update your subscriptions at:
Information for existing FreewayTalk / Groups.io users - Site Feedback - Softpress Talk


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options