Simple Machines Community Forum

SMF Support => Server Performance and Configuration => Topic started by: a10 on May 03, 2017, 01:38:29 PM

Title: Enabling SSL
Post by: a10 on May 03, 2017, 01:38:29 PM
Hello, so my host offers free 'one click' SSL (see attach.). Don't want to mess up anything, forum works perfect as it is, should I go for it? & what forum settings \ paths etc needs to be looked into.

Got a duplicate of the live forum running on a different domain, on which I can do any initial destruction & testing :O)

Thanks for any info.
Title: Re: Enabling SSL
Post by: Illori on May 03, 2017, 01:49:31 PM
step 1 wait for 2.0.14 to be released then try playing with it.
Title: Re: Enabling SSL
Post by: a10 on May 03, 2017, 01:53:15 PM
^ will do. Thanks.
Title: Re: Enabling SSL
Post by: Kindred on May 03, 2017, 02:00:03 PM
although waiting is not actually necessary.

the only issue with running 2.0.13 on SSL is that external avatars and bbc images will generate a "mixed content" warning.

add your cert
change your system URLs to https
confirm the changes in all settings (system, themes, avatars, attachments, smileys, mods)
implement the htaccess redirect to force https

If you are running prettyurls, there may be additional steps
Title: Re: Enabling SSL
Post by: a10 on June 08, 2017, 12:18:48 PM
Just an update, 2.0.14, php 7.0.15, ssl, all working perfect.

.htaccess forces www, best way to add a forced https?

Current:

Quote
RewriteEngine On
RewriteCond %{HTTP_HOST} ^***.net
RewriteRule (.*) http://www.***.net/$1 [R=301,L]

Thanks



Title: Re: Enabling SSL
Post by: a10 on June 08, 2017, 06:35:16 PM
This works for https + www

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