Godaddy and HttpModule Problems

by justin 29. August 2007 11:45
I just had an issue rolling out an HttpModule to my godaddy site (this site). I have a custom URL rewriter that I use to convert urls for blogs and topics by title into a common handler. For example the path:
http://www.justnbusiness.com/Blogs/Godaddy_and_HttpModule_Problems.aspx
 
Will actually just be routed to the URL:
http://www.justnbusiness.com/Blog.aspx?Title=Godaddy_and_HttpModule_Problems
 
It's prettier that way and then I only need one page to serve up all of the blogs BUT I had some major problems rolling it out. I had no idea why though, it worked great on my test site but then I rolled it out to Godaddy and it just didn't work. So I did what any other developer would do and I search Google high and low for about an hour. After a while I finally found a tidbit related to the default file for a given site and how if it was, say, index.html than if you had url's that didn't specifically have an .aspx on the end then IIS wouldn't even try to use ASP.NET but would instead just try to serve up the raw pages! This is what I was doing and once I added the .aspx to the above URL's and my rewriter then suddenly it worked, the server would hook into my custom URL rewriting HttpModule and everything was dandy!
Comments are closed

About Me

sweetest hat ever

I'm a software developer from Minnesota and this blog largely focuses on various technical concepts I am thinking about at the moment. I currently work for Microsoft in the St. Paul office of the Expression product group.

RecentPosts