Godaddy and HttpModule Problems

8/29/2007
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:
 
Will actually just be routed to the URL:
 
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

Alex - 2/7/2008
Hello Justin, Thanks for writing about this. Your blog was the first stop on my own google trek for the same issue and has already helped. Did you ever find a way to get the HttpModule to work without using the .aspx extension? Because I am having the exact symptoms you were but it's just not an option to alter the urls because in my situation I need to process all requests to every file from html to pdf for some simple authentication and logging.
Justin - 2/8/2008
I'm sorry to say it Alex but as far as I can tell this is not possible. However, I do believe that this is a problem specifically related to shared hosting environments. If you were to up your GoDaddy package to a virtual host, at least, then you could definitely configure IIS to get it exactly the way you want it. I believe the problem is just that IIS is configured incorrectly for this and they aren't going to change IIS configuration for a shared hosting environment. This roughtly translates into more money is all.

Add A Comment

Your Name:
Your Email:
Text:
Submit

About Me

Me

My name is Justin Chase and I am a software professional in Minneapolis, Minnesota. I work for a software consulting company called Magenic Technologies and I am the lead developer on an open source project called NBusiness.
More ...

Topics