Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
https forum url loads http:// in front of .css links
Avatar
boborg
Member
sp_UserOfflineSmall Offline
Jan 21, 2015 - 5:18 pm

Hi

I am testing https edition of my site and if I load my site with the https:// url and look at the source it has //: (no http://) in front of links to css and js and site loads fine. But if I load the forum site with https:// and look at the source it has http:// in frontmysiteurl and site is not loading css.

Where do I fix this?

Best regards
Bo

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jan 21, 2015 - 6:28 pm

Hey boborg,

Have you updated the forum permalink in Forum > Integration? Also have you got anything to update in Components > Login and Registration?

How are you setting up your https? Have you made changes to the wp-config file? Or are you using a plugin?

Avatar
boborg
Member
sp_UserOfflineSmall Offline
Jan 22, 2015 - 3:30 am

I have activated ssl on Cloudflare and not done any redirect to https yet. 

I have followed the guide Step-by-Step How To: Enabling CloudFlare (Flexible) SSL On WordPress on https://www.icontrolwp.com/201.....ect-loops/

According to number 3. in this guide I should see the site load as usual with the https before I force urls to https. Have not tried any of the https plugins yet.

The forum permalink seems grayed out and cannot be changed. Is it possible to have it set to just //digitalt.tv/forum/ without the http part?

Best regards
Bo

Avatar
boborg
Member
sp_UserOfflineSmall Offline
Jan 22, 2015 - 3:41 am

Actually got it working now by adding this to the wp-config

if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
    $_SERVER['HTTPS']='on';

And I could edit the sfpermalink in phpmyadmin and remove the http: part. Seems to be working.

Best regards
Bo

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 22, 2015 - 4:29 am

Really? Not heard of that method. Our only experience of people using Cloudflare is that is causes so much trouble and unreliability that they give up on it.

I will be interested to see what @mr-papa has to say when he gets back later today.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 22, 2015 - 8:08 pm

I have seen that added to wp config for users that have their sites behind a proxy or a load balancer...  not sure how its related to a CDN directly...  or setting ssl for site, but glad it works...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625