Project DescriptionAn ASP.Net program to handle redirects that will add or remove the www from request with a 301-Redirect.
This is a simple ASP.Net HttpModule to add OR remove the "www" sub domain and create a 301-Redirect to the preferred URL.
This code will support the goals of
http://no-www.org/ or
http://yes-www.org Pick you side and then use the appropriate DLL
The code has the ability to go either way (add it or remove it).
The main goal is to support the creation of 301-Redirects to the Canonical URL of your choice.
You can also do this in you web.config without any 'code'
http://stackoverflow.com/questions/7368665/proper-method-to-remove-www-from-address-using-iis-url-rewriteMy intention is to have both an application driven solution and a configuration explanation.
Initially, I have the removewww.dll for ASP.Net 2.0 in the source control.