Answer the question
In order to leave comments, you need to log in
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.
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
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)
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
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 :)
install the HTTP / HTTPS Remover plugin, it changes all links to relative ones
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 questionAsk a Question
731 491 924 answers to any question