Jump to content

HTTPS - Avatars in post feed being served over HTTP


Simon Harvey

Recommended Posts

Posted

Hello,

I would like to serve my site over HTTPS - I have updated conf_global.php to:'

base_url' => 'https://www.mysite.com/'

To the side of my forum I have a post feed block.  The avatars in the the post feed are being served as http leading to mixed content warnings.

Mixed Content: The page at 'https://www.mysite.com/' was loaded over HTTPS, but requested an insecure image 'http://www.mysite.com/uploads/monthly_2016_11/avatar.thumb.png.0389ebc5b8ad5154e6bfddcc76c7c183.png'. This content should also be served over HTTPS.

Does anyone know why this might be happening?

 

Thanks

Posted

Thanks for coming back to me so quickly on this.

I feel a bit silly now!  I haven't got IPB caching enabled but the issue was in my browser cache cleared that all is fine now.

Thanks for your help.

Simon

Posted
Just now, Simon Harvey said:

I haven't got IPB caching enabled

I don't mean caching as in the Data Storage Caching Method.

It's the cache that is stored by the software in the datastore folder, which can be cleared via the Support tool in the ACP (it rebuilds) - that should be cleared after you change the url in the conf_global.php file.

Posted

If you want force HTTPS for your entire site you'll want to keep people from going to the HTTP version.

Apply this to your .htaccess

<IfModule mod_rewrite.c>
	RewriteEngine on
	RewriteCond %{HTTPS} !=on [NC]
	RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>

 

Posted
3 hours ago, Tarun said:

If you want force HTTPS for your entire site you'll want to keep people from going to the HTTP version.

Apply this to your .htaccess


<IfModule mod_rewrite.c>
	RewriteEngine on
	RewriteCond %{HTTPS} !=on [NC]
	RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>

 

I actually came to ask this question, so great to find this so handy. Now, if I apply this any Google result will redirect to the forums index and not to the page the result belongs to. However, the redirection works as intended with links to the old http:// versions from other websites, but not from Google, which is a bit of a worry.

Anyone knows how to make Google results redirect correctly or what do I need to do to address this problem (assuming it's not Google's fault)

Just in case it matters I'm using IPB 3.4 and Cloudflare.

Posted

Google takes time to update the links. When I switched to all https I also readded my sitemaps and everything in Google Webmaster Tools, and also updated the sites in Google Analytics. Just remove the old http and add them again as https.

Posted

I didn't really notice any difference. Sometimes the results on Google would fluctuate but that was normal I figured. Didn't really see any negative impact though. Not that my site's really popular either.

Posted

Okay, I think I will try to go the slow way (if that's possible), that is submit map on webmasters tools, etc, but won't force Https for the time being (almost 50% of my traffic comes from Google to individual pages). Cheers.

Posted

Honestly, I would force it now. Google likes websites that as using https instead of http. I'm not entirely sure, but the duplicate content issue could also be a thing with http and https.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...