HTML区分大小写的问题 [英] HTML Case Sensitive Issues

查看:130
本文介绍了HTML区分大小写的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个总是部署在Windows服务器上的网站,没有大小写敏感问题。然而,我们现在需要部署到Linux,并知道该网站有很多错误地装箱的URL和引用。



是否有任何应用程序可以扫描网站并修复套管问题?这需要修复HTML文件,CSS文件以及可能的Javascript文件。



我正在考虑编写一个应用程序,为网站中的每个文件搜索所有其他文件,以查看它们是否引用它,然后纠正任何套管错误,但是想到

感谢
Gavin

解决方案

您使用的开发环境是什么?



例如,在dreamweaver中,您可以检查并更正站点范围内的链接。 / p>

编辑:回答您的问题:您可以下载Dreamweaver的试用版,将其作为项目放入您的网站并使用链接检查器检查并更正链接。



正如评论中所说,我肯定会纠正这个问题,而不是试图通过使用忽略情况解。这样您的网站便于携带,您将在未来避免出现问题。一个好的文件名惯例总是一个好主意(不是大写,没有空格,也不是特殊字符等)。

We have a site that's always been deployed on a windows server with no case sensitivity issues. However we now need to deploy to Linux and know the site has lots of incorrectly cased URL's and references.

Are there any applications that could scan the site and fix casing issues? This would need to fix HTML files, CSS files and if possible Javascript files.

I was thinking about writing an application that for each file in the site searches all the other files to see if they referenced it then corrected any casing errors, but thought on the off chance it may already be done and I can just download a ready made solution.

Thanks Gavin

解决方案

What development environment are you using?

For example in dreamweaver you can check and correct links site-wide.

Edit: To answer your question: you can download a trial version of dreamweaver, put in your web-site as a project and use the link checker to check and correct the links.

As said in the comments, I would definitely correct the problem and not try to get around it by using a "ignore-case" solution. That way your web-site is portable and you will avoid problems in the future. A good file-name convention is always a good idea (no upper case, no spaces, no exotic characters, etc.).

这篇关于HTML区分大小写的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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