Skip to main content
Hosting How-To

Why is an addon domain connected to a subdomain? – Hosting

By May 21, 2021No Comments

&#13

The procedure of including an addon area entails the creation of the corresponding subdomain. In terms of Apache VirtualHost entries, an addon is a parked area on that subdomain.&#13

&#13

There is no way to include an addon with out a subdomain staying developed, this is the essential principle of cPanel architecture. Yet, it is a common wish to make the inbound links – addon.maindomain.com and maindomain.com/addon unavailable.&#13
&#13

There are two techniques to accomplish this:&#13
&#13

&#13

&#13

1. Redirect each backlinks to a Not Located website page employing .htaccess which is to be put into the addon domain website root listing:&#13
&#13

&#13


RewriteEngine On
RewriteCond %HTTP_HOST addon.maindomain.com$
RewriteRule ^(.*)$ "http://maindomain.com/404" [R=301,L]

&#13

Make positive to update addon and main domain names correspondingly.&#13
&#13

2. Point subdomains addon.maindomain.com and www.addon.maindomain.com to a non-performing IP tackle, e.g., localhost (loopback tackle) 127…1 or just get rid of these DNS entries.&#13
&#13
It can be accomplished in your cPanel account in the subsequent way:&#13
&#13

Go to your cPanel account > Domains area > Zone Editor menu: &#13

Click on Deal with next to the key domain identify:&#13

&#13
&#13
Discover A documents for the subdomain in the listing.

You can delete these 2 DNS information or edit them by clicking the Edit button. Then, Help save History:

That is it!

           Have to have any support? Speak to our Helpdesk

Leave a Reply