Title: Changing wp-content from http to https
Last modified: February 26, 2018

---

# Changing wp-content from http to https

 *  Resolved [ligerdub](https://wordpress.org/support/users/ligerdub/)
 * (@ligerdub)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/changing-wp-content-from-http-to-https/)
 * Hi all,
 * I had some problems yesterday sorting out the security of my website and enabling
   access through various web filters. This has now mostly been resolved.
 * I still though have some problems with mixed content on the site and I can’t 
   find a way to resolve. TL, DR of the below, I need to change the URL’s of the
   wp-content of images I’ve uploaded from http to https but can’t do it. Does anyone
   have any ideas?
 * I’m getting the following error message on each page (different urls for the 
   image):
 * Mixed Content: The page at ‘[https://elyinsights.com/&#8217](https://elyinsights.com/&#8217);
   was loaded over HTTPS, but requested an insecure image ‘[http://elyinsights.com/wp-content/uploads/2018/02/DUBLIN20180212182514-2.jpg&#8217](http://elyinsights.com/wp-content/uploads/2018/02/DUBLIN20180212182514-2.jpg&#8217);.
   This content should also be served over HTTPS.
 * I can’t seem to find a way to change the URL of the image on the site from http
   to https. I’ve installed the following plugins but none of them resolve the problem:
 * Better Search Replace
    HTTP Headers Really Simple SSL SSL Insecure Content Fixer
   Wordpress HTTPS
 * I’ve pasted the following into the wp-config file
 * /** Http Headers – Setup by E Lyons. */
    define(‘FORCE_SSL_ADMIN’, true); define(‘
   WP_HOME’,’[https://elyinsights.com&#8217](https://elyinsights.com&#8217);); define(‘
   WP_SITEURL’,’[https://elyinsights.com&#8217](https://elyinsights.com&#8217););
 * and this into the .htaccess file:
 * RewriteEngine On
    RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ [https://www.elyinsights.com/$1](https://www.elyinsights.com/$1)[
   R,L] Header set Strict-Transport-Security “max-age=31536000” env=HTTPS
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fchanging-wp-content-from-http-to-https%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 3 months ago](https://wordpress.org/support/topic/changing-wp-content-from-http-to-https/#post-10016939)
 * Do you have any caching plugins? If so, disable them to see if it’s a caching
   issue.
 * NO PLUGINS at all are required for SSL once you’ve run “better search replace”.
   Note that it’s default is to run in “dry run” mode so it makes no changes.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 3 months ago](https://wordpress.org/support/topic/changing-wp-content-from-http-to-https/#post-10016957)
 * Also, check your CSS just in case that file is hardcoded someplace in your CSS.
 *  Thread Starter [ligerdub](https://wordpress.org/support/users/ligerdub/)
 * (@ligerdub)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/changing-wp-content-from-http-to-https/#post-10017136)
 * Thanks Steve.
 * I’ve checked CSS and no issues there. Plugins don’t seem to be a factor either
   re: cache.
 * I’ve also tried placing the following code in the wp-config file without success:
 * define(‘WP_CONTENT_URL’, ‘[https://elyinsights.com/wp-content&#8217](https://elyinsights.com/wp-content&#8217););
 * Is it possible that the Theme I’m using (Ocean WP) could be a factor?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 3 months ago](https://wordpress.org/support/topic/changing-wp-content-from-http-to-https/#post-10017159)
 * I can’t find that image referenced anywhere on your page, so it’s coming in via
   CSS or javascript.
 * Use the plugin ‘[string locator](https://wordpress.org/plugins/string-locator/)‘
   and see if you can find it. Search on “DUBLIN”.
 *  Thread Starter [ligerdub](https://wordpress.org/support/users/ligerdub/)
 * (@ligerdub)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/changing-wp-content-from-http-to-https/#post-10017254)
 * Fair play Steve……worked a treat. I was able to find the location where the images
   were stored. They were part of the media library installed to the page.
 * The directory was stored in the following location:
 * wp-content/uploads/elementor
 * And then in the relevant posts.
 * I just went in there and found the various URL’s, and changed them from http 
   to https and I no longer have any mixed content errors.
 * Thanks so much!
 * Eoghan
 *  [cjc1867](https://wordpress.org/support/users/cjc1867/)
 * (@cjc1867)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/changing-wp-content-from-http-to-https/#post-10017462)
 * Hi Eoghan
    The Home page link on the main menu at the top and the bottom menu,
   if you are on the About page, Services page or Contact page it doesn’t go back
   to the Home page but whatever page you are on.
 * Colin
 *  Thread Starter [ligerdub](https://wordpress.org/support/users/ligerdub/)
 * (@ligerdub)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/changing-wp-content-from-http-to-https/#post-10017606)
 * Hi Colin,
 * Thanks very much for the heads up, much appreciated. Good spot.
 * I’ve disabled some plug-ins, one of which had an impact on the permalinks format.
   Having made those changes the links look fine now, and the formats and other 
   various content urls appear to be in the right format.
 * Thanks again,
    Eoghan

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Changing wp-content from http to https’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [ligerdub](https://wordpress.org/support/users/ligerdub/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/changing-wp-content-from-http-to-https/#post-10017606)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
