IIS上URL中的特殊字符,IIS挂起 [英] Special character in URL on IIS, IIS hanging

查看:128
本文介绍了IIS上URL中的特殊字符,IIS挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一段时间以来,我一直在为Windows Server 2008 R2上的IIS问题困扰.我有一个网站需要移至该服务器.

I have tumbled with a problem with IIS on the Windows Server 2008 R2 for some time now. I have a website that needs to be moved to this server.

移动解决方案时发生的事情是,每个带有æ,ø,å,á或空格(%20)等特殊字符的URL都将无法工作,挂起并最终超时.该问题同时出现在图像和文件(ashx,gif,jpg)上.一切看起来都像是URL编码.

What happend when we move the solution is that every URL that have special character as æ, ø, å, á or spaces (%20) etc. will not work, hanging and lastly times out. The problem occours both on images and files (ashx, gif, jpg). Everything looks like it's being URL encoded.

在这件事上,我们在旧服务器上完全没有问题.

We have no issue at all on the old server on this matter.

以下是该问题的一些示例:

Here is some example of the issue:

我确定我错过了一些疯狂的设置,希望这里有人可以帮助我:)

I'm sure it is some crazy settings I missed out and I hope someone here can help me out :)

亲切的问候,尼尔斯

推荐答案

不确定IIS问题/解决方案,URL中不允许使用afaik特殊字符,但是解决此问题的"Sitecore"方法是通过配置替换字符.本文介绍了所需的配置更改: Sitecore中的SEO友好URL

Not sure of the IIS issue/solution, afaik special characters are not allowed in URLs, but the "Sitecore" way of resolving this is character replacement via config. This article explains config change required: SEO-friendly URLs in Sitecore

但是从本质上讲,您需要在Sitecore配置中添加更多的encodename替换项:

But essentially you need to add more encodenamereplacements in Sitecore config:

<encodenamereplacements>
    ...
    <replace mode="on" find="æ" replaceWith="a" />
    <replace mode="on" find="ø" replaceWith="o" />
</encodenamereplacements>

还有一个具有类似问题的线程:替换时的Sitecore问题网址中的丹麦语字符

There is another thread with a similar issue: Sitecore issue on replacing danish characters in url

这篇关于IIS上URL中的特殊字符,IIS挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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