最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Images not loading after migration

programmeradmin3浏览0评论

I have migrated my site from jojofun.co.uk to jojofun.ca. However, the images are not displaying at the new URL.

If you visit the new URL at jojofun.ca, you will see missing images - the only ones loading are those still being loaded from the old domain (in the header and footer).

I updated the database on the new site so the old URL is replaced with the new URL using this search replace script

On the homepage, you can see by copying the image location of a broken image and loading it in a new tab that the image loads. So the images do exist on the server, however they are not loading on the page nor in the media library.

Any ideas?

Thanks Andy

I have migrated my site from jojofun.co.uk to jojofun.ca. However, the images are not displaying at the new URL.

If you visit the new URL at jojofun.ca, you will see missing images - the only ones loading are those still being loaded from the old domain (in the header and footer).

I updated the database on the new site so the old URL is replaced with the new URL using this search replace script https://github/interconnectit/Search-Replace-DB

On the homepage, you can see by copying the image location of a broken image and loading it in a new tab that the image loads. So the images do exist on the server, however they are not loading on the page nor in the media library.

Any ideas?

Thanks Andy

Share Improve this question asked Jun 21, 2017 at 12:29 Andy WoodAndy Wood 111 silver badge3 bronze badges 2
  • The images are not broken. They are just blocked by your server. Your uploads folder might not have the proper permissions, or you might have rules in your .htaccess file that is blocking them. By the way your uploads folder has directory listing enabled. You should disable this. – Johansson Commented Jun 21, 2017 at 12:43
  • 1 Hi Jack. Thank you for this. There was code in the .htaccess placed there by the security plugin I'm using - I've updated that code with the new URL and now the images load. I've also added this line to my .htaccess file to disable directory listing: "Options -Indexes". Thanks again. – Andy Wood Commented Jun 21, 2017 at 13:10
Add a comment  | 

1 Answer 1

Reset to default 1

Look at your folder "uploads" permissions, it should be 755. More information here.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论