Answer:
This article explains how to redirect your domain to a different URL. Domain redirection allows visitors to be automatically sent from your domain to another website address.
1. Types of Domain Redirects
There are two common types of redirects:
1.1. 301 Redirect (Permanent)
Use this when you want the redirect to be permanent.
It also helps search engines understand the change.
1.2. 302 Redirect (Temporary)
Use this when the redirect is temporary.
Search engines do not treat it as a permanent move.
2. Redirect Using cPanel (Recommended)
If your domain is hosted with GHFS Hosting, you can set up redirects directly from cPanel.
Steps:
-
Log in to your cPanel account.
-
Go to the "Redirects" section.
-
Select the redirect type (301 or 302).
-
Choose the domain you want to redirect.
-
Enter the destination URL (the URL to which your domain should forward).
-
Save the settings.
The redirect becomes active immediately, but some browsers may cache old settings.
3. Redirect Using .htaccess (Advanced Option)
If your website runs on Apache, you can manually add a redirect in your .htaccess file.
Example for a 301 redirect:
Example for redirecting a specific page:
4. Redirect Using DNS (URL Forwarding)
Some domain registrars allow URL forwarding at DNS level.
DNS forwarding depends on the provider and may not support complex redirects.
Note: This method does not work using standard A or CNAME records.
You must use the registrar's URL forwarding feature if available.
5. Common Issues and Solutions
-
If the redirect does not work, clear your browser cache.
-
Make sure your destination URL includes "http://" or "https://".
-
If using cPanel, ensure the domain is linked to your hosting account.
6. When to Contact Support
Contact GHFS Hosting support if:
-
The redirect does not work even after configuration
-
You are unsure which redirect type to use
-
You need help editing .htaccess or cPanel settings