Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: guldam - lokakuu 28, 2019, 04:16:46 IP

Otsikko: smf posts with links to images broken - changes http to https
Kirjoitti: guldam - lokakuu 28, 2019, 04:16:46 IP
My forum is acting up, and I've spend a few hours bashing my head.  In short, smf posts with links to external site images get broken - SMF is automatically changing http to https. Is there a setting somewhere that is whacky?

My site is https. The member posts a link to his image on another site: http://jimluton.com/pc23/plank/buttblock2.png and once you post it, the image url is redirected to https://jimluton.com/pc23/plank/buttblock2.png

Help!

GulDam

Otsikko: Re: smf posts with links to images broken - changes http to https
Kirjoitti: Arantor - lokakuu 28, 2019, 04:21:04 IP
Is the image proxy turned on?
Otsikko: Re: smf posts with links to images broken - changes http to https
Kirjoitti: lurkalot - lokakuu 28, 2019, 04:28:54 IP
You say external links to images, but does this also apply to links in general?

For example, if you post this link? http://www.simplemachines.org/

Otsikko: Re: smf posts with links to images broken - changes http to https
Kirjoitti: guldam - lokakuu 28, 2019, 04:34:25 IP
Lainaus käyttäjältä: Arantor - lokakuu 28, 2019, 04:21:04 IP
Is the image proxy turned on?

No.
Otsikko: Re: smf posts with links to images broken - changes http to https
Kirjoitti: guldam - lokakuu 28, 2019, 04:39:27 IP
Lainaus käyttäjältä: lurkalot - lokakuu 28, 2019, 04:28:54 IP
You say external links to images, but does this also apply to links in general?

For example, if you post this link? http://www.simplemachines.org/



It does not change links.

I am running SMF 2.0.15

I have the following mods:
Optimus Brave   1.8.7
Ohara YouTube Embed   1.2.9
Pretty URLS 1.1.3
Otsikko: Re: smf posts with links to images broken - changes http to https
Kirjoitti: guldam - lokakuu 28, 2019, 04:51:55 IP
I think Pretty URLs is messed up. It's installed, but the package manager says it isn't.
Otsikko: Re: smf posts with links to images broken - changes http to https
Kirjoitti: Sir Osis of Liver - lokakuu 28, 2019, 10:24:27 IP
Lainaus käyttäjältä: guldam - lokakuu 28, 2019, 04:51:55 IP
I think Pretty URLs is messed up.

Good luck with that. :P  Try uninstalling it with package manager, then manually remove pretty urls code from .htaccess in forum root.
Otsikko: Re: smf posts with links to images broken - changes http to https
Kirjoitti: Kindred - lokakuu 29, 2019, 12:00:40 AP
There is nothing in smf core more in pretty urls which will force a change to urls as you describe.

The last time this happened, it ended up being a host configuration issue
Otsikko: Re: smf posts with links to images broken - changes http to https
Kirjoitti: shawnb61 - lokakuu 29, 2019, 10:09:07 AP
We had a recent report (can't find it right now) where this was due to a host setting.  Could you check with your host that there is no auto-https setting?
Otsikko: Re: smf posts with links to images broken - changes http to https
Kirjoitti: guldam - lokakuu 29, 2019, 03:27:44 IP
And it was indeed a setting that got toggled in cpanel for http/https for external links. I am relieved. Thanks all for your help!
Otsikko: Re: smf posts with links to images broken - changes http to https
Kirjoitti: lurkalot - lokakuu 29, 2019, 04:31:10 IP
Lainaus käyttäjältä: shawnb61 - lokakuu 29, 2019, 10:09:07 AP
We had a recent report (can't find it right now) where this was due to a host setting.  Could you check with your host that there is no auto-https setting?

That was where I was heading https://www.simplemachines.org/community/index.php?topic=569636.msg4032497#msg4032497

Glad it's sorted though.  ;)