Can I disable the URLRewrite module in IIS 7? I opened the console today and it asked me to install the Url Rewrite module. I accepted, thinking it wouldn't affect my site if I didn't configure it. But the paths for my Css files are being modified. I am using ASP.NET MVC and when I put in a relative path to my css files like this ../Content/Site.css the page which gets output has Views/Content/Site.css as the path. I'm worried that this will affect other paths which are more critical in my application.
Is it possible this is the issue?: http://learn.iis.net/page.aspx/517/url-rewriting-for-aspnet-web-forms/#Using_tilda
Downloading the module does not mean that it is being used on your site. Have you set up any rules at all? The .. in the path means one level up, so it looks like what's happening is correct. Or am I missing something? Aristotle DiscountASP.NET www.DiscountASP.NET
The url being requested is /admin/login.mvc/index. Since it is relative to the url it should be admin/Content/Site.css. In mvc the Views directory is never requested directly. The file is located in /admin/Content/Site.css. Which is why it isn't being resolved. But if there aren't any rules enabled, why would the url be rewritten from ../ to views/ ? Regardless if I had done something wrong why would the url be rewritten if I wasn't using a server control? Here's what the html is like: <link rel='stylesheet' type='text/css' href='../Content/Site.css' /> This all works fine on my local machine. Even my site which is not an mvc site, just a standard web forms app is now broken. The urls aren't being rewritten, but my asp.net theme isn't working. So the theme stylesheet ins't being injected into the page content. Post Edited (developmentalmadness) : 11/15/2008 2:19:59 PM GMT
Well it looks like I screwed up. Visual Studio lost some of my publish settings. I have two projects on the site and when I published one of them they both ended up in the same folder, which broke both projects. So I deleted everything and republished, which fixed it all.