cPanel addon domain now masking full URL

March 29, 2014 1.7k views
Hi all, I set up an addon domain ( in my account's cPanel. The document root is set to be where is the main domain name on my account. It works, however, when you enter it shows the full URL path on the host domain (i.e. instead of displaying as Could it be a result of my .htaccess file? Pasted below: RewriteEngine On IndexOptions +Charset=UTF-8 # Redirect www urls to non-www RewriteEngine on RewriteCond %{HTTP_HOST} !^host\.com RewriteRule (.*)$1 [R=301,L] Thanks in advance for the help!
1 Answer
This is most likely a DNS issue. How have you set up the DNS

The contents of the VirtualHosts blocks in the files in /etc/apache2/sites-enabled might also be helpful in debugging this.

If you want to by pass cpanel, we have a tutorial for setting up multiple domains on the same droplet:
by Etel Sverdlov
This tutorial shows you how to set up a new directory, how to grant the correct permissions, how to add content to a new page, how to turn on virtual hosting, and how to, if needed, set up local hosts. Virtual Hosts are used to run more than one domain off of a single IP address and allows you to run multiple sites off of a single DigitalOcean droplet. This tutorial describes how to set up virtual hosts with Apache.
Have another answer? Share your knowledge.