Jason Weber
Jason Weber

Reputation: 5741

My IIS7 URL rewrite rules keep disappearing

I have regular IIS7 rewrite rules -- the SEO ones (canonical name tags, trailing slashes, lowercase letters). 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.

Can anybody tell me why this is happening, and what I should do? Thanks!

Upvotes: 16

Views: 2868

Answers (1)

Ian Mercer
Ian Mercer

Reputation: 39277

Check that there isn't something else that's updating your web.config file.

Accidentally redeploying over it can cause this to happen since IIS stores the rewrite rules in your web.config file.

Upvotes: 19

Related Questions