Hi - I wanted to set up a second domain on my account that I would use as a blog. However, I did want it to be the top-level address for this blog - not just a subdomain of my default domain.
I set this up this second domain as an add-on domain, and then redirected it to a subdomain of my original default domain. For example:
original domain: default.com
New domain: experiment.com
I made experiment.com an add-on domain of default.com. Then redirected experiment.com to experiment.default.com. Then I set up the subdomain experiment.default.com to my wordpress index file (default.com/wordpress/index.html).
However, what I really want is to have this wordpress blog on the top-level domain (experiment.com). Whenever I now go to this URL - it just redirects me to default.com/wordpress/index.html (as expected!).
Is there any way to take this 2nd domain and have it visible to the outside public as simply "experiment.com" and host my wordpress blog on it?
Thanks in advance
Derek
Derek, I take it you did it the way you did because you wanted to use the Addon Scripts feature to install WordPress? That is the only reason I can see as to why you would do that.
Whenever an Addon Domain is created there is automatically a Subdomain created.
experiment.com << Addon Domain manually created by you
experiment.default.com << Subdomain automatically created by Cpanel
Either one is a valid Domain name with all files for 'experiment.com' kept in its own directory. Regardless of which URL is used, only files in the directory of the Addon Domain will be shown. If you want to use a script within an Addon Domain, you must manually install the script within the Addon Domain directory.
__________________ The caring is in the sharing. The learning is in the doing.
Thanks Rob- much appreciated. Sadly I'm still having problems.
I've set up the addon domain (experiment.com) and removed the subdomain redirection.
However, the 2nd domain still has to point to a folder in my public_html folder. Within there is "experiment" folder, complete with an index file. When I redirect the addon domiain to this page, the URL I see in my browser is:
And I can't see how I can have that "experiment.com" URL retained in the address bar as I inevitably will have to point to a sub-folder of the public_html folder of the "default" domain. Unless of course I can bring the "experiment" folder up to the root level ... but something makes me think that wouldn't be recommended (otherwise the addon tool would have mentioned it).
Any thoughts?
Thanks again
Derek
If we are talking about the account I think we are, there is nothing wrong with the way your account/sub-account is setup. Use this URL and you will see: Addon_Domain.com/index.html
The problem appears be created within your .htaccess file for the default account.
You are redirecting everything to 'show_author.php' which is not in Addon Domain directory.
Remove everything in the .htaccess file or whatever is related to the above file and see what happens. Then start re-adding things back in until it breaks; you'll then know exactly what directive is causing the problem.
You have to remember that directives used in an .htaccess file can have effects all throughout your account. When an .htaccess file has been setup like yours and you are having problems, it is worth considering if current directives are causing the problems and should be looked at.
For more detailed response and no fear of revealing information on a Public Forum, send the details to Support and we can discuss this more indepth.
__________________ The caring is in the sharing. The learning is in the doing.