All of your internal URL’s should be https for images and everything else on your site. If they are not then you need to change all URL’s so that they are https. If you have mixed http and https URL’s on your website then you will see redirect looping errors and the redirects will most likely fail. If someone uses an http URL to your website domain or a post or page URL from an external source (not internal) ie an old http URL link posted on another website then they should be redirected from http to https. That is what the code is used for.
↧