How do you remove default SSL (https) from media URL?

My hosting plan does not support SSL, so whenever a non-logged in user goes to the website, all the images will show as corrupted.

At first, I was confused about why this was happening, so performed right-click –> open image in new tab. I was greeted with the message “This Site may not be the one you are looking for” (or something) and the “https” in url bar had “x” over it.

My site URL in WordPress (general settings) is http://mydomain.com, so that’s not where the problem is located. Also, I disabled SSL on Better WP Security plugin. I don’t know what to do. I need help as soon as possible. All is appreciated.

  • signed_up
    • The Crimson Coder

    In addition, how do you change the actual media url. I do not mean the wp-content directory name. I know how to do that and did so with WP Better Security.

    How do I actually change the URL of an image that I upload?

    This would allow me to change it from “https” to “http”.

    My previous question is top-priority and with an answer to that, I wouldn’t even need an answer to this question. My only objective is to remove the “https” (replace with “http”:wink: for the default uploaded media URL, because I can’t even change it manually.

    Please respond as soon as possible.

  • signed_up
    • The Crimson Coder

    Has anyone found a solution with this?

    I would rather not mess with too much code. A setting or plugin to fix this is preferred, but if it comes down to that, I will tweak code if someone leads me through the process.

    This results of this issue would look very poor for the end-users. All my images are corrupted if one is not logged-in, and those would be my new visitors to the site.

    Please respond as soon as possible. I need help badly. All help is appreciated.

  • Alexander
    • DEV MAN’s Mascot

    Hello @signed_up,

    Images shouldn’t load over SSL by default. Go to “Settings -> General” See what your site URL is set to. If you have https:// in the URL, be sure to change it to http:// for both the site, and home URLs.

    If that doesn’t fix it, it’s most likely a theme or plugin. Can you try switching to TwentyTwelve and seeing if the images load at that point?

    Also, would you mind letting me take a look at one of the pages with broken images?

    Let me know how it goes.

  • signed_up
    • The Crimson Coder

    I actually found out what it was. I used to have SSL on through Better WP security plugin and when I disabled it through plugin settings, the lines that the plugin wrote in my wp-config file remained. I went to the wp-config file and fixed it. Thank you so much though.