Question
cPanel addon domain now masking full URL
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
# Redirect www urls to non-www
RewriteEngine on
RewriteCond %{HTTP_HOST} !^host\.com
RewriteRule (.*) http://host.com/$1 [R=301,L]
Thanks in advance for the help!
Add a comment
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.
×