Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 444
Jason Weber Avatar asked May 14 '12 05:05

Jason Weber


1 Answers

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.

like image 195
Ian Mercer Avatar answered Oct 09 '22 19:10

Ian Mercer