cPanel addon domain now masking full URL

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} !^ RewriteRule (.*)$1 [R=301,L]

Thanks in advance for the help!

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This is most likely a DNS issue. How have you set up the DNS <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>