Redirecting an Addon Domain in cPanel allows you to forward visitors from that domain to another URL. This is useful for consolidating traffic or temporarily redirecting a domain.
Follow these steps to set up a redirect for an addon domain:
Step 1: Log in to cPanel
- Open your web browser and navigate to your cPanel login page (e.g.,
https://yourdomain.com:2083
). - Enter your username and password, then click Log in.
Step 2: Access the Redirects Tool
- Scroll down to the Domains section in the cPanel dashboard.
- Click on Redirects.
Step 3: Choose the Redirection Type
- In the Add Redirect section:
- Type: Select the type of redirect you want:
- Permanent (301): This indicates that the redirection is permanent, which is better for SEO.
- Temporary (302): This indicates that the redirection is temporary.
- Type: Select the type of redirect you want:
- Choose the Domain: Select the addon domain you want to redirect from the dropdown menu.
Step 4: Set the Destination URL
- In the Redirects to field, enter the URL where you want visitors to be redirected. For example:
https://www.targetdomain.com
- Redirect With or Without www.: Choose how the redirection will work:
Step 5: Enable Wildcard Redirect (Optional)
- If you want all subdirectories of the addon domain to redirect to the same path on the destination URL, check the Wildcard Redirect box.
- Example:
addon.example.com/subpage
redirects towww.targetdomain.com/subpage
.
- Example:
Step 6: Add the Redirect
- Click Add to save the redirect.
Step 7: Test the Redirect
- Open your browser and visit the addon domain.
- Verify that the traffic is being redirected to the specified destination URL.
Optional: Remove or Edit the Redirect
- To modify or delete a redirect, return to the Redirects page in cPanel.
- Scroll down to the Current Redirects section, locate the redirect, and click Edit or Delete.
Tips for Redirecting an Addon Domain
- Test with SEO Tools: Use SEO tools or browser extensions to confirm that a 301 or 302 status code is correctly implemented.
- Wildcard Usage: Use wildcard redirects carefully to ensure subdirectories and files redirect as intended.
- DNS Settings: Ensure the addon domain's DNS is properly configured to point to your hosting provider for the redirect to function.
By redirecting an Addon Domain in cPanel, you can efficiently manage traffic and maintain control over visitor redirections.