URL Redirecting (or Rewriting?)
-
Hi, I would like to redirect all http requests made to mysite.com ... to www.mysite.com instead ... what is the easiest way to do this? Can I configure DNS to do this somehow? Do I configure something in IIS? Do I use some sort of URL rewriting in ASP.NET? Do I create two web sites (mysite.com and www.mysite.com) and redirect from one to the other? I just don't want http://mysite.com to ever appear in the address bar, I just want http://www.mysite.com instead (so visitor bookmarks and the server log file isn't mixed up with both versions -- which are the same site). Any ideas as to what is the easiest, most compatible method of accomplishing this? My platform is Windows Server 2003, IIS6, ASP.NET, NET 2.0, C#, etc... Thanks for any assistance!
-
Hi, I would like to redirect all http requests made to mysite.com ... to www.mysite.com instead ... what is the easiest way to do this? Can I configure DNS to do this somehow? Do I configure something in IIS? Do I use some sort of URL rewriting in ASP.NET? Do I create two web sites (mysite.com and www.mysite.com) and redirect from one to the other? I just don't want http://mysite.com to ever appear in the address bar, I just want http://www.mysite.com instead (so visitor bookmarks and the server log file isn't mixed up with both versions -- which are the same site). Any ideas as to what is the easiest, most compatible method of accomplishing this? My platform is Windows Server 2003, IIS6, ASP.NET, NET 2.0, C#, etc... Thanks for any assistance!
We use ISAPI_Rewrite from http://www.helicontech.com/[^] Also have a read of this http://www.codinghorror.com/blog/archives/000797.html[^]
-
We use ISAPI_Rewrite from http://www.helicontech.com/[^] Also have a read of this http://www.codinghorror.com/blog/archives/000797.html[^]