且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

IIS 7 URL重写

更新时间:2023-02-24 10:54:33

规则没有任何变化。我把规则放在错误的目录中。网站根目录不是域根目录,它位于子目录中。使用IIS,您需要将 web.config 放在要重写URL的同一目录中。

Nothing changed on the rule. I had the rule in the wrong directory. The website root was not the domain root, it was in a sub directory. With IIS you need to have the web.configin the same directory that you are wanting to rewrite the URL.

经过几个小时的敲打,我终于明白了。

After several hours of banging my head I finally figured it out.