网站图像链接在本地工作,但不在服务器上(Website images links work locally but not on server)

编程入门 行业动态 更新时间:2024-10-23 10:20:30
网站图像链接在本地工作,但不在服务器上(Website images links work locally but not on server)

我有一个网站上有许多缩略图,每个网站都有更大图像的链接。 这些全尺寸图像可以脱机工作,但是当我将它们上传到服务器时,它们将继续加载。

如果我试图直接看到图像,它会给我404错误。

这是这里的网站:www.weissidian.com

当我试图去看它时图像是什么样的:

我不确定为什么会这样做。

先谢谢你。

I have a website that has many thumbnail images on it with links to bigger images for each one. These fullsize images work offline, but when I upload them to the server they will just keep loading.

If I attempt to see the image directly it gives me a 404 error.

This is the website here: www.weissidian.com

What the image looks like when i attempt to go to it:

I'm not sure why it would be doing this.

Thanks before hand.

最满意答案

看起来您没有正确指定URL。 这些URL在您的服务器上是大小写的,并且在您的计算机上不区分大小写。

例如,使用http://weissidian.com/core/img/gallery/fullsize/digital/Shepard.jpg您将链接到不存在的digital目录。 (我猜是因为没有Forbidden消息。)当我尝试使用Digital (注意大写的D )时,它工作正常。

It looks like you didn't specify the URL correctly. The URLs are case-sentitive on your server and are case-insensitive on your computer.

For instance with http://weissidian.com/core/img/gallery/fullsize/digital/Shepard.jpg you are linking to the directory digital which doesn't exists. (I guessed because there is no Forbidden message.) When I try Digital (notice the uppercase D) it works fine.

更多推荐

本文发布于:2023-04-28 03:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1329800.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:图像   器上   链接   工作   网站

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!