A simple fix for broken links in posts after conversion to https

Started by live627, Feb 13, 2019, 02:06 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

live627

A very simple and safe hack for this would be with the word censor. Have it replace

http://yourstite.tld
Repeat fur each subdomain/www. Also useful if you need to change domains.

For the more adventurous, I have a SQL query that will update all posts.

UPDATE smf_messages SET body = REPLACE(body, 'http://yourstite.tld/index.php', 'https://yourstite.tld/index.php');
That will rip through ALL posts.

Bigguy

That is awesome. This will be handy for a lot of people. Thanks for posting this. :D

Skhilled

Excellent! Thanks a lot! I've been wanting something like this last year but am not very good with mySQL yet. It is on my to-do list, tho.