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. Domain and Subdomain

Domain and Subdomain

Scheduled Pinned Locked Moved ASP.NET
comhelptutorial
4 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.
  • N Offline
    N Offline
    NET India
    wrote on last edited by
    #1

    Hello Friends, I'm working on property portal where i've to implement subdomain concept. for example http://www.myDomain.com is url of my site. And also, there are some locations as Noida,Gurgaon and etc. As any user click on Noida then my site should display the url as shown here http://noida.myDomain.com. For this i've implemented subdomain concept and also created some subdomain in Domain Panel. But now i've to ask Should i've to keep App_code and web.config file in subdomain(noida) folder as well because if i don't upload App_Code and web.config file in subdomain folder then it raise error(s). Is it any other way to implement this concept(Sub domain) please let me know.

    A 1 Reply Last reply
    0
    • N NET India

      Hello Friends, I'm working on property portal where i've to implement subdomain concept. for example http://www.myDomain.com is url of my site. And also, there are some locations as Noida,Gurgaon and etc. As any user click on Noida then my site should display the url as shown here http://noida.myDomain.com. For this i've implemented subdomain concept and also created some subdomain in Domain Panel. But now i've to ask Should i've to keep App_code and web.config file in subdomain(noida) folder as well because if i don't upload App_Code and web.config file in subdomain folder then it raise error(s). Is it any other way to implement this concept(Sub domain) please let me know.

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Does your website using more than one server ? Or just you need to change the url :confused:

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Microsoft Bing MAP using Javascript
      CLR objects in SQL Server 2005
      Uncommon C# Keywords
      /xml>

      N 1 Reply Last reply
      0
      • A Abhishek Sur

        Does your website using more than one server ? Or just you need to change the url :confused:

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        My Latest Articles-->** Microsoft Bing MAP using Javascript
        CLR objects in SQL Server 2005
        Uncommon C# Keywords
        /xml>

        N Offline
        N Offline
        NET India
        wrote on last edited by
        #3

        I've a single server but is it any other way to display the url as i want ex. http://noida.myDomain.com except the subdomain.

        A 1 Reply Last reply
        0
        • N NET India

          I've a single server but is it any other way to display the url as i want ex. http://noida.myDomain.com except the subdomain.

          A Offline
          A Offline
          Abhishek Sur
          wrote on last edited by
          #4

          Of course. Just place a handler which can process this. But mind that, you need to register DNS entry for each of your domain. Means if your use just types http://noida.myDomain.com I will not go to http://www.myDomain.com automatically, unless you register the both in same IP. :)

          Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


          My Latest Articles-->** Simplify Code Using NDepend
          Basics of Bing Search API using .NET
          Microsoft Bing MAP using Javascript

          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