Images not loading after migration

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

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744912944a4600662.html

相关推荐

  • Images not loading after migration

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

    2天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信