By keith600435
Hi all,
I set up an addon domain (addondomain.com) in my account’s cPanel. The document root is set to be host.com/public_html/addondomain where host.com is the main domain name on my account.
It works, however, when you enter addondomain.com it shows the full URL path on the host domain (i.e. host.com/addondomain) instead of displaying as addondomain.com
Could it be a result of my .htaccess file?
Pasted below:
RewriteEngine On IndexOptions +Charset=UTF-8
RewriteEngine on RewriteCond %{HTTP_HOST} !^host.com RewriteRule (.*) http://host.com/$1 [R=301,L]
Thanks in advance for the help!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This is most likely a DNS issue. How have you set up the DNS addondomain.com? <br> <br>The contents of the VirtualHosts blocks in the files in /etc/apache2/sites-enabled might also be helpful in debugging this. <br> <br>If you want to by pass cpanel, we have a tutorial for setting up multiple domains on the same droplet: <br> <br>https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts
Hello there,
I would have the addon domain name’s root directory out of the public_html folder, usually addon domains will have a directory in the cPanel’s account root directory named after the addon domain, so that will be /home/user/your_addon_domain.com
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.