简体   繁体   English

我的IIS7 URL重写规则不断消失

[英]My IIS7 URL rewrite rules keep disappearing

I have regular IIS7 rewrite rules -- the SEO ones (canonical name tags, trailing slashes, lowercase letters). 我有常规的IIS7重写规则 - 搜索引擎优化规则(规范名称标签,尾部斜杠,小写字母)。 They work fine. 他们工作正常。

But then a day later, or even a few hours later, they're gone -- as if they were never there in the first place, so I have to redo them again in IIS7. 但是后来一天之后,甚至几个小时之后,他们就走了 - 好像他们从来没有在那里,所以我必须在IIS7中再次重做它们。

Can anybody tell me why this is happening, and what I should do? 任何人都可以告诉我为什么会这样,我该怎么办? Thanks! 谢谢!

Check that there isn't something else that's updating your web.config file. 检查是否有其他内容正在更新您的web.config文件。

Accidentally redeploying over it can cause this to happen since IIS stores the rewrite rules in your web.config file. 由于IIS将重写规则存储在您的web.config文件中,因此意外地重新部署它可能会导致这种情况发生。

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

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