18910140161

HTML-IIS Web.config文件重定向规则在添加超过3个规则后停止工作-堆栈溢出

顺晟科技

2022-10-19 14:26:05

111

希望有人能帮忙,我最近重新设计了一个网站,需要重定向一些URL。我发现在IIS中的web.config文件中这样做更容易,并且设置了当前的规则。任何更多的规则之后,这将打破所有的重定向,我得到的错误,该网站正在被重定向到许多次。我已经设置了它,使stopPorcessing为真,因此它不应该尝试重定向超过要求?

<rule name="New About us Redirect" stopProcessing="true"><match url="^(about-us.*)" /><action type="Redirect" url="http://www.mysite.co.uk/about.html" /></rule>

<rule name="New Rule meet-the-team" stopProcessing="TRUE"> <match url= "^(meet-the-team.*)"/> <action type="Redirect" url="http://www.mysite.co.uk.co.uk/team.html" /> </rule>

<rule name="New Rule it-solutions" stopProcessing="TRUE"> <match url= "^(solutions.*)"/> <action type="Redirect" url="http://www.mysite.co.uk/services.html" /> </rule>

不胜感激。


顺晟科技:

  • TAG:
相关文章
我们已经准备好了,你呢?
2024我们与您携手共赢,为您的企业形象保驾护航