I am facing the following problem: I have www.main.com I added an addon domain addon.com. This created the directory http://www.main.com/public_html/addon So now what i want to do is when one of the following scenarios happen : - http://www.main.com/public_html/addon - http://main.com/public_html/addon - http://addon.main.com - http://addon.main.com/addon - http://addon.main.com/public_html/addon - http://addon.com then all redirect to www.addon.com How on earth can i do this? Please help
Hey Subliminal, You can not browse the public_html via browser, when main.com is called, it browses the main directory that is public_html. In brief, when you browse http://www.main.com is called, it displays the index page of the directory public_html. Now, reply to your question: If you have created the addon domain from cpanel and if you have pointed the nameservers to the one that main.com has then the below links should work: 1. http://addon.com 2. http://addon.main.com (pointing is not necessary) 3. http://main.com/addon/ (pointing is not necessary) 4. http://www.main.com/addon http://addon.main.com/addon (you can create a virtual directory, but i personally think that it would be confusing and conflicting) Below links are not possible until you alter the properties of public_html, which is not advisable: 1. http://www.main.com/public_html/addon 2. http://main.com/public_html/addon 3. http://addon.main.com/public_html/addon Hope this helps...
Sure i would love to take you through all the steps: 1. If you want to add an addon domain say addon.com, then it should be owned by you and you should have the registration details. Alrite, now you just need to login to registration control panel and change the nameservers of it to point to your main.com (here it means, you need to use the same nameservers that used in main.com). 2. Now, add the addon.com as an addon domain from the cpanel, so it would be created as a sub directory. This directory will be the location for the addon domain's files, just as public_html is the location for your primary domain's files. 3. All you need to do is now, upload the contents in the addon directory and browse addon.com. Note: If you have changed the nameservers recently then you should allow few hours for it to propagate across the globe and if it is still not working then clear your system cache and cookies as well as flush the dns of your network. Thanks,
Hi, Please go to "redirects" section in your cpanel. There you can redirect your subdomain to addon domain and also can ensure www. is there on every request.