cPanel 3d ago 12 views 5 min read

How to set up a parked domain in cPanel

Redirect traffic from a secondary domain to a primary account without buying a new hosting package. Follow these steps to configure a parked domain in cPanel using the standard interface.

Roy S
Updated 19h ago
Sponsored

Cloud VPS — scale in minutes

Instantly deploy SSD cloud VPS with guaranteed resources, snapshots and per-hour billing. Pay only for what you use.

You will configure a parked domain to redirect all traffic from a secondary domain to your primary website account. This guide targets cPanel 118.x and WHM 118.x environments running on Linux.

Prerequisites

  • Root or Reseller access to a cPanel/WHM server running cPanel 118.x.
  • A primary domain already associated with the current cPanel account.
  • The secondary domain name ready to be added (e.g., example.com).
  • SSH access to the server if you need to adjust DNS records manually.

Step 1: Log in to cPanel

Open a web browser and navigate to your server's IP address or primary domain. Enter your cPanel username and password to access the dashboard. Ensure you are logged in as the primary user or a reseller with permission to manage domains.

Step 2: Navigate to the Domains section

Locate the Domains module in the main cPanel interface. Click on the Parked Domains link. This opens the management page where you can view existing parked domains and add new ones. The interface displays a list of currently parked domains and a form to add a new one.

Step 3: Add the new domain

In the Add a parked domain box, type the full domain name you want to park (e.g., parked-example.com). Ensure you enter the domain exactly as it appears in your DNS provider's zone file. Click the Add button to submit the request.

Example input:
parked-example.com

Once you click Add, cPanel creates a symbolic link between the new domain and your primary account. The system automatically updates the internal database to associate the new domain with your home directory.

Step 4: Verify the domain association

Check the list below the form to confirm the new domain appears in the Parked Domains table. You should see the domain listed with a status of Parked. If the domain is listed, the association is successful. If you do not see the domain, refresh the page or check the error logs.

Log in to your DNS provider's control panel (e.g., Cloudflare, GoDaddy, Namecheap). Create an A record pointing the new domain to your server's IP address. Set the TTL to 300 seconds for faster propagation. Alternatively, use an ALIAS or CNAME record if your provider supports it for subdomains or parked domains.

Example DNS record:
Type: A
Name: parked-example.com
Value: 192.0.2.1 (Your Server IP)

This ensures that when a user types the new domain, the DNS resolver directs the browser to your server. Without this step, the domain may resolve to a default cPanel parking page or show a DNS error.

Step 6: Set up the redirect (if not automatic)

cPanel usually handles the redirect automatically after adding the domain. However, if you want to customize the redirect behavior, use the Redirects module. Go to Redirects in the cPanel sidebar. Enter the source domain (the parked domain) and the target URL (your primary domain). Select the redirect type: 301 Moved Permanently for SEO best practices.

Source: parked-example.com
Target: https://primary-example.com/
Type: 301 Moved Permanently

Click Add Domain to save the redirect rule. This ensures search engines and browsers follow the redirect correctly. The 301 status code tells browsers and search engines that the domain has permanently moved.

Verify the installation

Open a browser and navigate to the new parked domain (e.g., http://parked-example.com). You should see your primary website content load immediately. Check the browser status bar for a 301 Moved Permanently or 200 OK response. If you see the cPanel default parking page, the DNS records are not yet pointing to your server.

Expected browser output:
The content of your primary website loads.
Status code: 301 or 200

Troubleshooting

Error: Domain shows "Not Found" or DNS Error
The A record in your DNS provider's zone file is missing or points to the wrong IP. Verify the record exists and matches your server's IP. Wait up to 48 hours for DNS propagation if you recently changed records. Use nslookup parked-example.com to check the resolved IP address.

Command: nslookup parked-example.com
Expected output:
parked-example.com    192.0.2.1

Error: cPanel shows "Domain already exists"
The domain may already be parked under a different account or in the public domain list. Check the Public Domains list in cPanel. If the domain is already parked, remove it from the public list before re-adding it to your account.

Error: Redirect loop or 404 error
The Redirects module may have conflicting rules. Remove any existing redirect rules for the domain. Re-enter the source and target domains with the correct 301 status. Clear your browser cache and try again.

Error: SSL certificate issues
If you use SSL, ensure the parked domain has a valid certificate. Go to SSL/TLS in cPanel and install a certificate for the parked domain. Use Let's Encrypt or your provider's SSL options. A missing certificate may cause browsers to show security warnings.

Error: Domain does not appear in the list
Refresh the Parked Domains page. If the domain still does not appear, check the error logs in cPanel. Look for messages like Domain not found or Permission denied. Contact your hosting provider if the issue persists.

Tip: Test with different browsers
Some browsers cache DNS records. Try opening the parked domain in an incognito window or a different browser. If the issue resolves, clear your DNS cache on your local machine using ipconfig /flushdns (Windows) or sudo dscacheutil -flushcache (macOS).

By following these steps, you ensure that the parked domain redirects correctly to your primary website. Always verify DNS propagation and SSL certificates to avoid user-facing errors.

Sponsored

Windows Dedicated Server

High-performance Windows dedicated servers with licensed Windows Server, Remote Desktop access and enterprise-grade hardware.

Tags: cPanelDNSHostingdomain
0
Was this helpful?

Related tutorials

Comments 0

Login to leave a comment.

No comments yet — be the first to share your thoughts.