Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Simon Harvey Posted December 13, 2016 Posted December 13, 2016 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
Nathan Explosion Posted December 13, 2016 Posted December 13, 2016 Have you cleared your site's cache, following the change to the base_url, yet?
Simon Harvey Posted December 13, 2016 Author Posted December 13, 2016 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
Nathan Explosion Posted December 13, 2016 Posted December 13, 2016 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.
Simon Harvey Posted December 13, 2016 Author Posted December 13, 2016 Ok thanks, I wasn't aware of that. I have done that now and that has resolved a similar problem on my calendar page. Thanks again.
Tarun Posted December 13, 2016 Posted December 13, 2016 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>
PPlanet Posted December 14, 2016 Posted December 14, 2016 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.
Tarun Posted December 14, 2016 Posted December 14, 2016 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.
PPlanet Posted December 14, 2016 Posted December 14, 2016 Cheers for the quick reply Tarun. Did you suffer SEO-wise or simply visits-wise when you did that?
Tarun Posted December 14, 2016 Posted December 14, 2016 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.
PPlanet Posted December 14, 2016 Posted December 14, 2016 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.
Tarun Posted December 14, 2016 Posted December 14, 2016 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.
PPlanet Posted December 14, 2016 Posted December 14, 2016 Okay, I will try to research a bit more and see what to do. Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.