News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Enabling SSL

Started by a10, May 03, 2017, 01:38:29 PM

Previous topic - Next topic

a10

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.
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Illori

step 1 wait for 2.0.14 to be released then try playing with it.

a10

2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Kindred

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
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

a10

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



2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

a10

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]
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Advertisement: