https Secure Site with Broken Images

Posted in: Newsmag
Post count: 5

Who is aware and running into broken images like the arrows in the navigation when switching to a https secure site domain? I spent hours with GoDaddy all to find out it is the theme not the https cert. When searching the site from google and landing on it, everything loads find, but when directly typing in thelascopress.com etc. it will show broken images for little icons from the theme like arrows etc. Help please!!

Post count: 9544

Good to learn to use console inspector in Chrome, and also ‘view source’ option on your post page(s).

a) in Chrome, F12 allows you to see the content, and identify anything not loading https
b) in Chrome ‘view source’ allows you to *see* your HTML and ‘search’ for elements like any instance of ‘http’ to track down WHAT is not loading via https.

Often it’s an external plugin, or other issue. But tracking down WHAT it is specifically helps to determine what needs fixing. Often something super simple.

All my Newsmag sites run https with no issues, but I do know a couple of the early ‘demo’ setups had some background image or something that wasn’t https in the code.

Couple of tips:
a) make sure your site is explicitly entered in your wp-config.php file as https (see the wordpress.org codex docs on editing your wp-config.php file — also very good to know if running a WP site of any kind)

b) if you recently changed your site from http to https, you need to do search/replace via phpmyadmin to your mysql dbase after making backup, to search/replace all instances of http://yoursite to https://yoursite

c) consider adding an element to your htaccess file in your public root (depending on whether you have one there or not), which does a force redirect for any http request to https (often this can be setup on modern web servers, but GoDaddy probably not).

Note last example here:
https://wordpress.stackexchange.com/questions/236734/wordpress-redirect-all-http-requests-to-https-via-htaccess

(( I don’t work here; just post for gingerbread cookie tips ))

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