Question:

I have several domain names under 1 hosting plan, is there a way..?

by  |  earlier

0 LIKES UnLike

is there a way to make them behave in a such way that when i type in www.mysite1.com in the address bar it goes to mysite1.com/index1.html and

when i type www.mysite2.com it would go to mysite1.com/index2.html

cos now when you type any of the domain names it goes to the first avaialable .html document

 Tags:

   Report

4 ANSWERS


  1. There are many ways that could be done, but your options will be limited by the software that is used by your host.  I would check with your site host or provide the details of your hosting plan.


  2. You should not need to do redirects I don't think. Right now the DNS settings for both domains are pointed to the same server, which is good. But the server needs to know where to look for the index.html file for the second domain or else it just picks the first one in the public_html folder. I also have 2 domains and my main one has it's home index page in the public_html folder, the second one is set up as an add-on domain and it's index page is in folder named secondsitesname.com inside the public_html folder. So all you need to do is to set up mysite2.com as an add-on domain in the control panel and it should create the folder for you to put mysite2.com's files in. Note that an add-on domain is both it's own domain and a subdomain. But you would not treat it as a subdomain, because it is it's own domain.

  3. you should be able to redirect with a .htaccess file, im not 100% on exactly what code to write but this is the way forward I think

  4. I am not sure who you used to purchased the domain names but if you used GoDaddy.com you can configure a redirect for each domain name to go the page you wish.  I do that with many of the domains I currently own.  

    With Godaddy.com, it is very easy.  You choose the domain name you wish to edit and then enter the redirect URL.  

    Check with the site where you purchased the domains if it is not the same company where your filoes are being hosted.

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.