Community Forums › Forums › Archived Forums › General Discussion › https custom header logo
- This topic has 5 replies, 2 voices, and was last updated 9 years, 2 months ago by
Victor Font.
-
AuthorPosts
-
January 17, 2017 at 7:20 am #199543
Mitssumi
MemberHi,
We are force using https traffic only.
The custom header logo uses a http link at single page and https link on the homepage.
Seems something is wrong with the code or using relative links.Homepage:

Single page:

Most recent themes used: Genesis & Digital Pro
https://goo.gl/9oY0mT
Live url: https://goo.gl/9oY0mTJanuary 17, 2017 at 7:50 am #199545Victor Font
ModeratorThere's something else going on with your site that may be related to caching. You home page is using autoptimize to minimize and combine your CSS. The interior pages are not using the autoptimize CSS, but are showing the logo link as inline CSS.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?January 17, 2017 at 7:58 am #199547Mitssumi
MemberI disabled the autoptimize plugin and cleared all the cache (cache enabler plugin + cloudflare).
January 17, 2017 at 8:34 am #199551Victor Font
ModeratorIt's not possible to tell from the front end what's happening, but I have two thoughts.
This could be related to your server configuration. Genesis retrieves custom header images using the WordPress get_header_image() function. This WordPress function sets the url with another function named set_url_scheme(). set_url_scheme() in turn uses a function named is_ssl() to determine whether to append http or https as the protocol. It does this by reading server port 443 to see if a SSL certificate is attached to the port. Depending on your host, is_ssl doesn't work behind some load balancers. This article explains the problem and potential fixes, https://snippets.webaware.com.au/snippets/wordpress-is_ssl-doesnt-work-behind-some-load-balancers/
The second thought is to use a tool like Better Search and Replace to change any instances of http stored in your database to https.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?January 17, 2017 at 9:20 am #199556Mitssumi
MemberHi Victor,
Nothing hard coded in de code or database.
Solved the issue by forcing wordpress to use httpsif (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS'] = 'on';Problem was Cloudflare acting as a transparant or reversed proxy.
Cloudflare redirects all http traffic to https, so no harm done.Thank you for pointing me in the right direction Victor!
January 17, 2017 at 2:49 pm #199575Victor Font
ModeratorDoesn't Cloudflare have a setting for https?
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet? -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.