How to Redirect an Addon Domain in cPanel? (Video)

 

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

  1. Open your web browser and navigate to your cPanel login page (e.g., https://yourdomain.com:2083).
  2. Enter your username and password, then click Log in.

Step 2: Access the Redirects Tool

  1. Scroll down to the Domains section in the cPanel dashboard.
  2. Click on Redirects.

Step 3: Choose the Redirection Type

  1. 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.
  2. Choose the Domain: Select the addon domain you want to redirect from the dropdown menu.

Step 4: Set the Destination URL

  1. In the Redirects to field, enter the URL where you want visitors to be redirected. For example:
    • https://www.targetdomain.com
  2. Redirect With or Without www.: Choose how the redirection will work:
    • Only redirect with www.: Redirects only visitors using the www version.
    • Redirect with or without www.: Redirects all visitors, whether they use www or not.
    • Do Not Redirect www.: Redirects only visitors not using www.

Step 5: Enable Wildcard Redirect (Optional)

  1. 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 to www.targetdomain.com/subpage.

Step 6: Add the Redirect

  1. Click Add to save the redirect.

Step 7: Test the Redirect

  1. Open your browser and visit the addon domain.
  2. Verify that the traffic is being redirected to the specified destination URL.

Optional: Remove or Edit the Redirect

  1. To modify or delete a redirect, return to the Redirects page in cPanel.
  2. 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.

 
  • 1 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

How to Park a Domain in cPanel? (Video)

  Parking a domain in cPanel allows you to associate multiple domains with the same website....

How to Remove Domain Alias or Parked Domain name in cPanel? (Video)

  Removing a domain alias or parked domain in cPanel is a straightforward process. If you no...

How to Create an Addon Domain in cPanel? (Video)

  An Addon Domain allows you to host multiple websites on the same hosting account....

How to Remove an Add-on Domain in cPanel? (Video)

  If you no longer need an Addon Domain hosted on your account, you can remove it...

How to Create a Subdomain in cPanel? (Video)

  A subdomain is a part of your main domain that acts as a separate website or section of your...