Domain for subdirectory only

Discussion in 'General troubleshooting' started by mike6432, Mar 31, 2009.

  1. Hi, I was wondering if I can do this...

    I currently have a domain and hosting plan here but I I break down different sites I do by subdirectory, for instance, I have rootdomain.com/folder1/default.aspx where folder1 is a web application/site for a specific function and so on and so forth.

    What I want to be able to do is, just buy another domain (have to be purchased here?) - domainX.com

    and when a user types in domainX.com they will be directed to rootdomain.com/folder5/default.aspx and where rootdomain.com is, the user will really see domainx.com whenever they are navigating. I know theres a kb article about this but I want to verify it will do what I really need.

    I don't want the user just to type in domainx.com and then see rootdomain.com/ etc etc I need that domainX to be consistent and hold when they are browsing. And also, how I have my sites, within folder5, I have multiple other folders as well, for images, etc different pages...so I'd want the user to also see domainX.com/folder2/ or folder2 or folder3 within folder1. Is this possible? Thanks
     
  2. With a Windows server set up as a shared hosting there is no server setting to actually do what you are looking for so the only way is inserting a redirect script in your start up page. I assume thats what the kb article you are referring to. The problem with this is that when you redirect as an example, domainx.com redirects to a folder called site2 the URL will change back to the original domain name which is domain.com/site2. I assume you don't want that so you will also need to incorporate a URL rewrite method.
    Incidentally it's really unwise to have multiple sites under one account. This is because your account has one application pool and having multiple sites can make your entire sites unstable and can degrade the performance of all sites. Not to mention if one site crashes it can crash the other sites. Its always better to simply open another hosting account for your new site especially if both sites are going to be an important part of your business. We have a referral program for customers who are opening multiple accounts. This helps our customers save money. The referral program can be used on a new account that is owned by you. Look up these kb article if you are interested in our referral program.

    http://support.discountasp.net/KB/a142/referral-program.aspx
    http://support.discountasp.net/KB/a376/how-do-i-join-the-referral-program.aspx
    http://support.discountasp.net/KB/a375/can-i-receive-referral-credit-if-i-refer-my-own-accounts.aspx
     

Share This Page