Why does the URL of an image start with HTTP instead of HTTPS when uploading to WordPress?

When you upload an image to WordPress and its URL starts with “HTTP” instead of “HTTPS,” there can be several reasons for this. Here are some possible causes and solutions:

  1. WordPress settings: Check the WordPress settings to ensure it is configured to use HTTPS. You can do this by going to “Settings” > “General” in the WordPress admin panel and making sure that the WordPress URL and the site URL have “https://” instead of “http://”.
  2. SSL certificate: Ensure that your website has a valid SSL certificate installed. An SSL certificate is necessary to enable HTTPS on your website. You can obtain an SSL certificate from a trusted certification authority and then install it on your server.
  3. Server configuration: Verify your web server’s configuration to ensure it is properly set up to use HTTPS. This might involve setting up redirects from HTTP to HTTPS or adjusting server settings to enable HTTPS.
  4. Plugins or themes: Some plugins or themes might be configured to load resources, like images, via HTTP instead of HTTPS. Check the settings of your plugins and themes to make sure they are configured to use HTTPS.
  5. Browser cache: If you’ve made recent changes to your website’s settings to enable HTTPS, the browser might be caching the previous version of the image with the HTTP URL. Try clearing your browser cache or test opening your website in a different browser to see if the issue persists.

These are just a few possible causes and solutions for the problem of an image URL in WordPress starting with “HTTP” instead of “HTTPS.” Depending on your specific setup, you might need to make additional adjustments. If the issue continues, it’s advisable to consult the WordPress documentation or seek help from the WordPress support community.

References:
[1] https://www.hostinger.com/tutorials/how-to-fix-the-err_http_image_loading-wordpress-error
[2] https://kinsta.com/blog/wordpress-http-error/
[3] https://wordpress.org/support/topic/web-en-https-pero-imagenes-se-cargan-en-http/
[4] https://blog.infranetworking.com/en/error-http-when-uploading-images-in-wordpress-causes-and-solution/
[5] https://www.dreamhost.com/blog/how-to-fix-image-uploading-issues-in-wordpress/
[6] https://www.siteground.com/kb/fixing-image-loading-issues/