How to Redirect subdomain to an external URL in cPanel? (Video)

 

Redirecting a subdomain to an external URL in cPanel ensures visitors are automatically sent to a specific webpage outside your hosting account.

Follow these steps to set up the redirect:


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: Configure the Redirect

  1. In the Add Redirect section:
    • Type: Select the type of redirect:
      • Permanent (301): Use this for permanent redirects, which are better for SEO.
      • Temporary (302): Use this for temporary redirects.
    • Choose the Subdomain: Select the subdomain you want to redirect from the dropdown menu (e.g., blog.example.com).
    • Redirects to: Enter the external URL where you want the subdomain to redirect (e.g., https://externalwebsite.com).
  2. Redirect With or Without www.:
    • Choose whether the redirect applies to both www and non-www versions of the subdomain.

Step 4: Save the Redirect

  1. Click Add to save the redirect.
  2. The redirect will be added to the list of active redirects in the Current Redirects section.

Step 5: Test the Redirect

  1. Open your browser and visit the subdomain (e.g., http://blog.example.com).
  2. Ensure that it redirects to the specified external URL.

Optional: Remove or Edit the Redirect

  1. To modify or delete the redirect:
    • Return to the Redirects page in cPanel.
    • Scroll to the Current Redirects section.
    • Locate the redirect for the subdomain and click Edit or Delete as needed.

Tips for Redirecting Subdomains

  • Check DNS Settings: Ensure the subdomain's DNS record is correctly configured to point to your hosting account, so the redirect works.
  • Use SEO-Friendly Redirects: For long-term redirects, use a 301 Permanent Redirect to maintain search engine rankings.
  • Monitor Redirects: Test your redirect regularly to ensure it functions as intended.

By redirecting a subdomain to an external URL in cPanel, you can efficiently manage traffic and direct users to the desired destination.

  • 0 Korisnici koji smatraju članak korisnim
Je li Vam ovaj odgovor pomogao?

Vezani članci

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 Redirect an Addon Domain in cPanel? (Video)

  Redirecting an Addon Domain in cPanel allows you to forward visitors from that...