How to Redirect a Domain

Introduction

Domain redirection forwards visitors from one domain or URL to another automatically.

Redirects are commonly used for:

Example:

oldwebsite.com → newwebsite.com

Types of Redirects

Redirect Type

Purpose

301 Redirect

Permanent redirect

302 Redirect

Temporary redirect


Understanding 301 vs 302 Redirects

A permanent redirect tells search engines:

Best for:


302 Redirect

A temporary redirect tells search engines:

Best for:


Method 1: Redirect Domain Using cPanel

This is the easiest method.


Step 1: Log in to cPanel

Open your cPanel login URL:

https://yourdomain.com:2083

or access through:

https://my.govaio.com/login

Enter your cPanel username and password.


Step 2: Open Redirects Tool

Inside cPanel:

  1. Go to the Domains section

  2. Click:

Redirects

Step 3: Select Redirect Type

Choose:

Recommended:

Permanent (301)

Step 4: Select Domain to Redirect

Choose the domain or subdomain you want to redirect.

Example:

oldwebsite.com

Step 5: Enter Destination URL

Enter the target destination.

Example:

https://newwebsite.com

Step 6: Configure Redirect Options

Optional settings may include:


Wildcard Redirect

Wildcard redirect forwards all pages.

Example:

oldwebsite.com/page1
→
newwebsite.com/page1

Enable:

Wild Card Redirect

Step 7: Add Redirect

Click:

Add

Your redirect is now active.


Method 2: Redirect Using .htaccess

Advanced users can manually configure redirects.


Step 1: Open File Manager

  1. Open cPanel

  2. Go to:

File Manager

Step 2: Open public_html

Navigate to:

public_html

Step 3: Edit .htaccess File

Locate:

.htaccess

If missing:


Example 301 Redirect

Add:

Redirect 301 / https://newwebsite.com/

Example Redirect Specific Page

Redirect 301 /old-page.html 
https://newwebsite.com/new-page.html

Example Force HTTPS Redirect

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]

Example Redirect www to non-www

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [L,R=301]

Method 3: Redirect Domain at Registrar

Some domain registrars provide URL forwarding.

Common providers:


Typical Registrar Redirect Setup

  1. Log in to registrar

  2. Open:

  3. Enter destination URL

  4. Save settings


Common Redirect Use Cases

Redirect Scenario

Example

Old domain to new domain

oldsite.comnewsite.com

HTTP to HTTPS

http:// → https://

www to non-www

www.site.comsite.com

Redirect old pages

oldpage → newpage


How to Test Redirects

After configuring redirect:

  1. Open browser

  2. Visit source domain

  3. Confirm automatic forwarding

You may also use online redirect checker tools.


SEO Considerations

For SEO:


Common Redirect Errors & Solutions

1. Redirect Loop Error

Cause:

Conflicting redirect rules.

Solution:


2. Redirect Not Working

Cause:

Browser cache or syntax error.

Solution:


3. Too Many Redirects Error

Cause:

Multiple chained redirects.

Solution:


4. SSL Redirect Issues

Cause:

SSL not properly configured.

Solution:


Security Recommendations


Frequently Asked Questions (FAQ)

Q1. What is a 301 redirect?

A permanent redirect transferring visitors and SEO value to a new URL.


Q2. Does redirect affect SEO?

Proper 301 redirects preserve most SEO rankings.


Q3. Can I redirect only one page?

Yes. Specific pages can be redirected individually.


Q4. Can I redirect subdomains?

Yes. Subdomains can also be redirected.


Q5. How long do redirects take to work?

Usually immediately after configuration.


Need Help?

If you need assistance configuring domain redirects, contact support:

📧 support@govaio.com