Why is an addon domain connected to a subdomain?
- Category : cPanel Question
- Posted on : Dec 13, 2020
- Views : 1,507
- By : HostSEO
The process of adding an addon domain involves the creation of the corresponding subdomain. In terms of Apache VirtualHost entries, an addon is a parked domain on that subdomain.
There is no way to add an addon without a subdomain being created, this is the fundamental principle of cPanel architecture. Nevertheless, it is a common desire to make the links - addon.maindomain.com and maindomain.com/addon unavailable.
There are two ways to achieve this:
1. Redirect both links to a Not Found page using .htaccess which is to be placed into the addon domain web root directory:
RewriteEngine On
RewriteCond %{HTTP_HOST} addon.maindomain.com$
RewriteRule ^(.*)$ "http://maindomain.com/404" [R=301,L]
Make sure to update addon and main domain names correspondingly.
2. Point subdomains addon.maindomain.com and www.addon.maindomain.com to a non-working IP address, e.g., localhost (loopback address) 127.0.0.1 or just remove these DNS entries. It can be done in your cPanel account in the following way:
Go to your cPanel account > Domains section > Zone Editor menu:
Click Manage next to the main domain name:
Find A records for the subdomain in the list.
You can delete these 2 DNS records or edit them by clicking the Edit button. Then, Save Record:
That's it!
Categories
- cPanel Question 47
- cPanel Software Management 29
- cPanel Tutorials 13
- Development 29
- Domain 13
- General 19
- Linux Helpline (Easy Guide) 156
- Marketing 47
- MySQL Question 13
- News 2
- PHP Configuration 14
- SEO 4
- SEO 42
- Server Administration 84
- SSL Installation 54
- Tips and Tricks 24
- VPS 3
- Web Hosting 44
- Website Security 22
- WHM questions 13
- WordPress 148
Subscribe Now
10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!Archive Calendar
Sat | Sun | Mon | Tue | Wed | Thu | Fri |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 |
Recent Articles
-
Posted on : Sep 17
-
Posted on : Sep 10
-
Posted on : Aug 04
-
Posted on : Apr 01
Tags
- ts
- myisam
- vpn
- sql
- process
- kill
- tweak
- server load
- attack
- ddos mitigation
- Knowledge
- layer 7
- ddos
- webmail
- DMARC
- Development
- nginx
- seo vpn
- Hosting Security
- wireguard
- innodb
- exim
- smtp relay
- smtp
- VPS Hosting
- cpulimit
- Plesk
- Comparison
- cpu
- encryption
- WHM
- xampp
- sysstat
- optimize
- cheap vpn
- php-fpm
- mariadb
- apache
- Small Business
- Error
- Networking
- VPS
- SSD Hosting
- Link Building
- centos
- DNS
- optimization
- ubuntu