V
V
Vladimir2017-02-21 13:08:57
Digital certificates
Vladimir, 2017-02-21 13:08:57

How to convert images to https in wordpress?

Hello!
I switched the site to https, using the
RewriteCond %{HTTPS} =off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] redirect,
everything is fine, the only thing is that the pictures remained on http. Screenshot is attached.
7e3b42c357854ad8ab8bd6e6c45fdc28.jpg
Can you please tell me where in WP such links to https are translated.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexey Sklyarov, 2017-02-21
@0example

In htaccess, it is unlikely that rewriting the rules will help you. From your screenshot, I realized that you are inserting pictures through a visual editor. Therefore, http prescribes Wordpress itself when saving a post. In the site settings, try specifying the site address not via http, but via https
Settings -> General -> WordPress Address (URL) and Website Address (URL)

W
WP Panda, 2017-02-21
@wppanda5

https://interconnectit.com/products/search-and-rep... Throw it
in the root, go from the browser to the site / folder with the downloaded script, in the top line specify http:// and https:// press start, enjoy the result, delete the script

I
Ivan Kozlov, 2017-02-21
@trampick

install the WP Migrate DB
plugin. There is a migration item in the settings. Next, select Search and Replace and change site.com to https://site.com. I advise you to make a backup of the database before this :)

V
Victoria, 2019-09-18
@Sudinoi

install the HTTP / HTTPS Remover plugin, it changes all links to relative ones

A
Alexander Pushkarev, 2017-02-21
@AXP-dev

If you inserted pictures in the editor, then only through the database. Download the database, change it, upload it back

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question