Advertisement:

Author Topic: Converted SMF to https but links in posts are still http  (Read 1751 times)

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,181
  • Gender: Male
  • If you're going through hell, keep going!
    • Underdog-01 on GitHub
    • WebDev.ca
Re: Converted SMF to https but links in posts are still http
« Reply #20 on: August 27, 2018, 05:52:57 PM »
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.

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
Simple Portal Support

Request politely & demand nothing.

Offline probeman

  • Semi-Newbie
  • *
  • Posts: 54
Re: Converted SMF to https but links in posts are still http
« Reply #21 on: August 28, 2018, 04:28:48 PM »
Hi all,
Ok, so our web host finally got around to fixing the .htaccess file.  The original file was:

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

The new file is:

Code: [Select]
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.