简体   繁体   English

IIS 服务器短名称

[英]IIS server short name

On my IIS server, I found a problem.在我的IIS服务器上,我发现了一个问题。

If I create a file with the name a~a.html it's okay and the file can be accessed like this:如果我创建一个名为a~a.html的文件,那么可以这样访问该文件:

http://localhost/a~a.html

but if I create a file with the name: a~1.html , every time I access http://localhost/a~1.html it always returns a 404 error.但是如果我创建一个名为a~1.html ,每次访问http://localhost/a~1.html它总是返回404错误。 Does anyone know how to solve this?有谁知道如何解决这个问题?

Now, I know this problem is related to the IIS short file name.现在,我知道这个问题与IIS短文件名有关。

It works normally on my side, a~1.html is your file name, it has nothing to do with IIS short file name.我这边正常,a~1.html是你的文件名,和IIS短文件名无关。

在此处输入图片说明

You can try to clear your cache or check if there is url rewrite in your website.您可以尝试清除缓存或检查您的网站是否有 url 重写。 these reasons may cause 404 errors.这些原因可能会导致 404 错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM