Jump to content

HTTPS - Avatars in post feed being served over HTTP


Simon Harvey

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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>

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

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