Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder BoldUlysses's Avatar
    Join Date
    Jan 2008
    Location
    Winston-Salem, NC
    Posts
    938
    Thanks
    10
    Thanked 190 Times in 187 Posts

    Can DNS point to different base files?

    Is this even possible at all? I have one ~2GB account with my Web hosting service, and three domains registered with it. Entering any of the three domain names in the address bar of a browser will direct you to the same index.html file in the base directory of my webspace.

    Is there any way to get the domain names to point to different files within the same base directory? Ideally I'd like to be able to make three entirely separate Web sites, all using the same space, without having to purchase additional accounts. Make sense?

    Thanks again.

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by msuffern View Post
    Is this even possible at all? I have one ~2GB account with my Web hosting service, and three domains registered with it. Entering any of the three domain names in the address bar of a browser will direct you to the same index.html file in the base directory of my webspace.

    Is there any way to get the domain names to point to different files within the same base directory? Ideally I'd like to be able to make three entirely separate Web sites, all using the same space, without having to purchase additional accounts. Make sense?

    Thanks again.
    you can use redirection based on user request. In my opinion a better option is to buy aditional account. Using redirection can cost you more than you can save.

    best regards

  • #3
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    In theory you could do some trickery with software using a server side language that would look at the domain requested and redirect to you to a different set of files.

    However the ideal solution is to see if your host will allow you to have more than one virtual server so you can have one for each domain. They might not do that for no additional charge though.
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •