How to enable https on all pages of a site

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
postiffm
Forum Members
Forum Members
Posts: 124
Joined: Tue Nov 30, 2010 12:16 am

How to enable https on all pages of a site

Post by postiffm »

CMSMS 2.1.6, all latest module upgrades, and my host (a2hosting.com) has set up Lets Encrypt to make things easy.

I changed Site Admin | Settings - Content Manager | New Page Defaults tab | put "Yes" for "Is this page secure" about halfway down.

On each page's Options tab, I see the option Use HTTPS for this page is unchecked. How can I put a checkmark in this for every page in my hierarchy at one time?

Thank you
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: How to enable https on all pages of a site

Post by Rolf »

You don't have to...

Follow this tutorial:
https://www.cmscanbesimple.org/blog/set ... ade-simple
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
postiffm
Forum Members
Forum Members
Posts: 124
Joined: Tue Nov 30, 2010 12:16 am

Re: How to enable https on all pages of a site

Post by postiffm »

Thanks Rolf. My host suggested this change to .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L]
</IfModule>

Is this equivalent to what you say in the tutorial, better, worse?

Thanks again.
Post Reply

Return to “CMSMS Core”