HTTPS mixed content

Posted in: Newspaper
Post count: 60

Hi, we have a SSL cert on our site, all works fine, we have forced all website content to be loaded over HTTPS, however when hovering over the main menu, mixed HTTP/HTTPS errors appear:
https://monosnap.com/file/abiADo4sLfetkvgkxFIpAVZvJodA61

&

https://monosnap.com/file/naUNFpH8K5FUeCVb4N61WCF5rHoPr4

The plugin developers (force ssl) and the hosting provider, tell us that this is due to how the site is coded. They have even included HTML post processing rules, however, post processing rules only cover when the page loads, anything that loads after that does not get caught.

How can we fix this?
Thank you

Post count: 9544

You still need to search/replace your mySQL dbase to replace http://yoursite with https://yoursite, ensure all your links in theme panel are https, like to logo, and perhaps put explicit https URL for site in your wp-config.php folder.

I just went through this with all our sites.

Post count: 60

Hi again @neotrope,

define( 'WP_SITEURL', 'https://www.emp' );
define( 'WP_HOME', 'https://www.em' );

Totally worked!
Thanks for your assistance (and knowledge).

Post count: 9544

Yeah.. just went through this process with about a dozen sites … !

the MySQL search/replace is this — change to your site URL, obviously, remember closing / or image links break, and if you changed the default wp table to something other than wp_posts (e.g., monkeyboy_posts) … you need to change obviosuly

update wp_posts set post_content =
replace(post_content,'http://myawesomesite.com/','https://myawesomesite.com/')

this is *not* something to put in functions.php or wp-config.php you enter this in the “SQL” screen under phpMyAdmin for your WP dbase, then hit “go”

  • This reply was modified 9 years by simchris.
Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.