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. virtual subdomain without ISAPI [modified]

virtual subdomain without ISAPI [modified]

Scheduled Pinned Locked Moved ASP.NET
csharpphpasp-netcomtutorial
4 Posts 3 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.
  • M Offline
    M Offline
    m khansari
    wrote on last edited by
    #1

    hi a project i'm going to undertake will require a user system which generates a virtual subdomain for users who register with my site. For example the user john signs up and is given a subdomain to access his account, john.website.com, which when rendered in the browser will automatically bring up http://website.com/profile.php?username=john or similar. How can this be acheived? I know it can be done with ISAPI_REWRITE I want to use my code for it. I work ASP.NET. tanks. MK4 modified on Saturday, November 1, 2008 3:13 AM

    R 1 Reply Last reply
    0
    • M m khansari

      hi a project i'm going to undertake will require a user system which generates a virtual subdomain for users who register with my site. For example the user john signs up and is given a subdomain to access his account, john.website.com, which when rendered in the browser will automatically bring up http://website.com/profile.php?username=john or similar. How can this be acheived? I know it can be done with ISAPI_REWRITE I want to use my code for it. I work ASP.NET. tanks. MK4 modified on Saturday, November 1, 2008 3:13 AM

      R Offline
      R Offline
      Rajasekharan Vengalil
      wrote on last edited by
      #2

      AFAIK its more of an IIS and DNS configuration thing and outside the realm of control of your app. Once your app gets the request however, you can look at the domain on which the site is being accessed (from your "default.aspx" maybe or even from an HTTP handler) by inspecting the HTTP headers and appropriately redirect or transfer to another page. But from looking at the URL that you want to redirect to, it looks like you're using PHP though and not ASP.NET?! :confused:

      -- gleat http://blogorama.nerdworks.in[^] --

      Number Two's eyes narrowed and became what are known in the Shouting and Killing People trade as cold slits, the idea presumably being to give your opponent the impression that you have lost your glasses or are having difficulty keeping awake. Why this is frightening is an, as yet, unresolved problem. -- HHGTG

      M 1 Reply Last reply
      0
      • R Rajasekharan Vengalil

        AFAIK its more of an IIS and DNS configuration thing and outside the realm of control of your app. Once your app gets the request however, you can look at the domain on which the site is being accessed (from your "default.aspx" maybe or even from an HTTP handler) by inspecting the HTTP headers and appropriately redirect or transfer to another page. But from looking at the URL that you want to redirect to, it looks like you're using PHP though and not ASP.NET?! :confused:

        -- gleat http://blogorama.nerdworks.in[^] --

        Number Two's eyes narrowed and became what are known in the Shouting and Killing People trade as cold slits, the idea presumably being to give your opponent the impression that you have lost your glasses or are having difficulty keeping awake. Why this is frightening is an, as yet, unresolved problem. -- HHGTG

        M Offline
        M Offline
        m khansari
        wrote on last edited by
        #3

        hi i find a way to do it. 1. DNS must be configured. like *.example.com IN A 10.10.10.10(the site's IP) 2.IIS must be configured such every request to example.com by every subdomain go through ASP ISAPI 3.A HttpModule must be created to handle those request and convert it to actual address. LIKE subdomain.example.com ----> www.example.com/query?id=subdoamin. thanks. bye.

        MK4

        M 1 Reply Last reply
        0
        • M m khansari

          hi i find a way to do it. 1. DNS must be configured. like *.example.com IN A 10.10.10.10(the site's IP) 2.IIS must be configured such every request to example.com by every subdomain go through ASP ISAPI 3.A HttpModule must be created to handle those request and convert it to actual address. LIKE subdomain.example.com ----> www.example.com/query?id=subdoamin. thanks. bye.

          MK4

          M Offline
          M Offline
          mehran asg
          wrote on last edited by
          #4

          Hi. I have the same problem .Do you know any online HttpModule sample? I have no idea about it. regards. mehran

          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