The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Protocol-relative URLs not working when forum switched to https protocol

3 posters

Go down

In progress Protocol-relative URLs not working when forum switched to https protocol

Post by cromar November 1st 2019, 9:30 pm

My Forum URL:  http:/federer.forumotion.com

I have been using the PRU Url format (URL without http/https, e.g.: 'http://www.xyz.com') quite widely on our forum, but when I switched the forum yesterday from HTTP to HTTPS, many of those link no longer worked. Links that points directly to websites using the 'URL' code are OK, but all links in codes that use the format 'src="[URL]', like 'iframe', or '< img > no longer connect. I just get just a small 'x' icon type for images, or a blank in case of 'iframes'.

The task of modifying all those codes manually is daunting. Is there a way to add some CSS code or script that would have those URL recognized/accepted?

Or, if not, a script that would add the missing 'HTTPS:' to existing posts?  The script would need to insert  https: in front of the // in all codes containing  src="//  with the result being: src="https://

I have switched our forum back to HTTP protocol until I find a solution. I thank you for your help.
cromar
cromar
New Member

Posts : 18
Reputation : 1
Language : english

http://federer.forumotion.com

Back to top Go down

In progress Re: Protocol-relative URLs not working when forum switched to https protocol

Post by Ape November 1st 2019, 9:55 pm

Hello @cromar this is 100% normal you should make the change to all your URL's before you change the forum over to HTTPS.

our system will make a basic change to your own hosted URL's on your forum but links you have added have to be changed by you as we don't do this for you.

So if you link to other sites then they should have a HTTPS address also or your links will no longer work if you have our HTTPS address.


Protocol-relative URLs not working when forum switched to https protocol Left1212Protocol-relative URLs not working when forum switched to https protocol Center11Protocol-relative URLs not working when forum switched to https protocol Right112
Protocol-relative URLs not working when forum switched to https protocol Ape_b110
Protocol-relative URLs not working when forum switched to https protocol Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19110
Reputation : 1991
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: Protocol-relative URLs not working when forum switched to https protocol

Post by cromar November 3rd 2019, 9:59 pm

Thanks @ape for your reply. I am just surprised that the PRU URL format no longer works after switching to the HTTPS protocol, as this is a well documented format that can be used with either protocol. The protocol being omitted, it should automatically select the active protocol of the site. Hence, my question, as it was working before? That question has not really been answered.

But more importantly, in the second part of my post, I was asking about the possibility of a script to automate the changes I need to make, as I have several hundreds of them to do! Or some entry in the CSS that would specify to interpret any [src="//] url and [src="https://] ?? Any possibility of that? I need some help here. Thanks in advance.
cromar
cromar
New Member

Posts : 18
Reputation : 1
Language : english

http://federer.forumotion.com

Back to top Go down

In progress Re: Protocol-relative URLs not working when forum switched to https protocol

Post by jucarese November 3rd 2019, 10:11 pm

When we activate the SSL protocol on our URLS, what the certificate is to call all the urls of our forum who are in HTTP and try you reconvert HTTPS, in some urls that's possible, because most web pages already use HTTPS, but those pages that have not changed, to a secure page with HTTPS can not be loaded and stop working .then you have 2 options or disable the certificate of your forum and run your scripts either or change urls contained between src = "// for HTTPS addresses directly.

Try removing the URL HTTP and putting these urls are loaded with www

src="//WWW.url
jucarese
jucarese
Hyperactive

Male Posts : 2443
Reputation : 116
Language : spanish
Location : SSF Admin

http://asistencia.foroactivo.com/u23082

Back to top Go down

In progress Re: Protocol-relative URLs not working when forum switched to https protocol

Post by cromar November 6th 2019, 1:36 pm

I know what I have to do! Confused Actually, the images that are not loading are all from HTTPS sites. Links to web pages without a protocol (//www...) were still working when I switched the Forum to HTTPS, but not the display of images with (src="//www...). Anyway, I will have to attack the problem soon.

Any chance of any script to do this? It would be much appreciated. I recently saw a script on this site that was provided to a member to change all Youtube codes to an 'iframe' format on her forum. So, I thought that maybe something similar could be done to change my codes that are missing the HTTPS. Let me know if there is a chance of that, or whether you are not providing such service anymore? Thanks for listening.

cromar
cromar
New Member

Posts : 18
Reputation : 1
Language : english

http://federer.forumotion.com

Back to top Go down

In progress Re: Protocol-relative URLs not working when forum switched to https protocol

Post by jucarese November 6th 2019, 2:11 pm

cromar wrote:I know what I have to do! Confused   Actually, the images that are not loading are all from HTTPS sites. Links to web pages without a protocol (//www...) were still working when I switched the Forum to HTTPS, but not the display of images with (src="//www...).  Anyway, I will have to attack the problem soon.  

Any chance of any script to do this?


The https protocol  automatically converts all http to https urls , If the server where is hosted url that does not allow this change., you need to upload links to an HTTPS server,or disable HTTPS protocol.
jucarese
jucarese
Hyperactive

Male Posts : 2443
Reputation : 116
Language : spanish
Location : SSF Admin

http://asistencia.foroactivo.com/u23082

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum