Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. URL Redirecting (or Rewriting?)

URL Redirecting (or Rewriting?)

Scheduled Pinned Locked Moved ASP.NET
csharpwindows-adminquestionasp-netcom
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    achimera
    wrote on last edited by
    #1

    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!

    D 1 Reply Last reply
    0
    • A achimera

      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!

      D Offline
      D Offline
      Dan_P
      wrote on last edited by
      #2

      We use ISAPI_Rewrite from http://www.helicontech.com/[^] Also have a read of this http://www.codinghorror.com/blog/archives/000797.html[^]

      A 1 Reply Last reply
      0
      • D Dan_P

        We use ISAPI_Rewrite from http://www.helicontech.com/[^] Also have a read of this http://www.codinghorror.com/blog/archives/000797.html[^]

        A Offline
        A Offline
        achimera
        wrote on last edited by
        #3

        Thanks for the ISAPI_Rewrite suggestion. Works great. Voted you a 5.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups