Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: landyvlad on May 10, 2019, 12:42:36 AM

Title: htaccess for SSL ?
Post by: landyvlad on May 10, 2019, 12:42:36 AM
I'm using SMF 2.1 RC2 currently. Fresh install from full package (not upgrade)

I've selected force SSL in the forum settings.

Yet I'm still getting a not secure warning, just as you can probably see here: commandocomics.org (http://commandocomics.org)

There was no htaccess file in existence so I created one as follows:


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



Yes I have seen this thread (https://www.simplemachines.org/community/index.php?topic=567466.msg4009236#new), which is where I got that code from.



What have I missed here? Advice please.
Title: Re: htaccess for SSL ?
Post by: vbgamer45 on May 10, 2019, 12:48:19 AM
commandocomics.org uses an invalid security certificate. The certificate is not trusted because it is self-signed. Error code: MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT

try to use lets encrypt or buy an SSL cert
Title: Re: htaccess for SSL ?
Post by: landyvlad on May 11, 2019, 07:38:11 AM
I asked my host to have a look as I didn't get that problem with my other 2.1 RC2 forum.
Ta.
Title: Re: htaccess for SSL ?
Post by: landyvlad on May 12, 2019, 03:26:47 AM
Ok can people check if they are still having the problem or if it shows as OK please.

commandocomics.org (http://commandocomics.org)

should redirect to https and show normally.

Thanks
Title: Re: htaccess for SSL ?
Post by: skb on May 12, 2019, 04:13:36 AM
Site cannot be reached.
Title: Re: htaccess for SSL ?
Post by: Arantor on May 12, 2019, 04:52:14 AM
That's because the URL tag is built wrong and includes quotes that shouldn't be there. The actual site loads and redirects as expected.
Title: Re: htaccess for SSL ?
Post by: lurkalot on May 12, 2019, 05:24:47 AM
Quote from: Arantor on May 12, 2019, 04:52:14 AM
That's because the URL tag is built wrong and includes quotes that shouldn't be there. The actual site loads and redirects as expected.

Link was probably built using SMF 2.1 https://github.com/SimpleMachines/SMF2.1/issues/5209 Apparently this isn't an issue.
Title: Re: htaccess for SSL ?
Post by: landyvlad on May 12, 2019, 07:35:13 PM
So it's working properly now?
Title: Re: htaccess for SSL ?
Post by: lurkalot on May 13, 2019, 01:33:48 AM
Quote from: landyvlad on May 12, 2019, 07:35:13 PM
So it's working properly now?

Your site is, yes.  :)

And Kindred fixed your link above, so that works too.  ;)
Title: Re: htaccess for SSL ?
Post by: landyvlad on May 13, 2019, 04:30:46 AM
Thanks all.