简体   繁体   English

重新安装后,Wordpress 站点从 HTTP 更改为 HTTPS。 并没有看到一些图片

[英]Wordpress site changed to HTTPS from HTTP after reinstall. And does not see some of the pictures

I changed some files in config sites and my site broke.我更改了配置站点中的一些文件,但我的站点损坏了。 So I reinstalled wordpress and replace in the new install wp-admin, wp-content, wp-includes with old folders.所以我重新安装了 wordpress 并在新的安装 wp-admin、wp-content、wp-includes 中替换为旧文件夹。 Used the same database.使用相同的数据库。 Now my site is only working on https not on http like it was before and it fails to load certain images and thumbnail.现在我的网站只在 https 上工作,而不是像以前那样在 http 上工作,它无法加载某些图像和缩略图。 When i am inspecting the page the images have the 404 error and they work when replacing their url from http to https.当我检查页面时,图像出现 404 错误,并且在将其 url 从 http 替换为 https 时它们可以工作。 Is there a general fix for that?有一个通用的解决方法吗? What should i do.我应该怎么办。 enter image description here在此处输入图像描述

you might want to re-sync all the files on your website with this plugin.您可能希望使用此插件重新同步您网站上的所有文件。 https://wordpress.org/plugins/media-sync/ , some of the file url might be still on the "http" that's why when you access the website with https it wont load. https://wordpress.org/plugins/media-sync/ ,一些文件 url 可能仍在“http”上,这就是为什么当您使用 https 访问网站时它不会加载的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM