QUICK NEWS

{NEW} - A new css video is up.

{OLD} - New video courtesy of Skhilled, Thanks for posting it up.

Video of the moment:


Internal Links

SMF Sites

Quick Info

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
"It's the American dream....cause ya have to be asleep to believe it." - George Carlin

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.