一些HTML链接在服务器上不起作用 [英] some HTML links not working on server

查看:172
本文介绍了一些HTML链接在服务器上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将我的HTML/CSS网站上传到了我的新主机.在本地所有链接都工作正常.但是在服务器上,所有指向图像的链接以及一些指向更深文件夹中的.html文档的链接都无法正常工作.

I've just uploaded my HTML/CSS website to my new hosting. Locally all links are working fine. But on server all links to the images and some links to .html documents that are deeper in folders don't work.

例如,来自index.html的内容: 指向kategorii/oblekainakit.html的链接有效.

For example from index.html: the link to kategorii/oblekainakit.html is working.

<a href="kategorii/oblekainakit.html"></a>

但链接:

<img class="port-img" src="kategorii/oblekainakit/oblekainakit.jpg">

不起作用!

当.html文档深两个文件夹时,指向js/css的链接也不起作用,并且我对每个链接都使用"../../",但没有结果.

also when the .html document is two folders deeper the links to js/css are not working and i'm using "../../" for every link but with no results.

您能帮我吗(域名为www.bizniskatalog.mk).

Can you please help me (the domain is www.bizniskatalog.mk).

谢谢

推荐答案

我找到了解决方案.

上传文件时,重要的是文件是否带有CAPS.在本地并不重要,但是在服务器上以某种方式可以实现.

When the files are uploaded it is important if the files are with CAPS or not. Locally it doesn't matter but when on server somehow it does.

这篇关于一些HTML链接在服务器上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆