News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Converted SMF to https but links in posts are still http

Started by probeman, August 24, 2018, 11:40:10 AM

Previous topic - Next topic

Chen Zhen

Quote from: Kindred on August 26, 2018, 11:03:41 AM
If you want to change the actual DISPLAYED text to be https, then you will need to do a direct database edit/replace

That mod/tool I attached in a previous post to this topic does that.
It will replace all http to https when it matches the $boardurl in all posts contained in the messages table.

Quote from: probeman on August 26, 2018, 11:53:07 AM
Thanks.  I will talk to the web host IT person next week and I will point out your suggestions to them.  I don't feel qualified to run a script on the databases myself.

I doubt your host will install SMF mods/tools for you (unless I misunderstood your reference).
You will have to do that yourself.

Quote
Is there a way to globally convert all pasted links that point to other posts in the forum to https:?   I could manually go through all the posts and edit them by hand but there are over 6000 of them!
It does precisely what you asked in the onset of this thread.

My SMF Mods & Plug-Ins

WebDev

"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

probeman

Hi all,
Ok, so our web host finally got around to fixing the .htaccess file.  The original file was:

RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L]


The new file is:

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R,L]


Apparently that is what was needed.

Thank-you all for your help and suggestions.  This is a great community.

Advertisement: