How to Redirect a Domain and Understand Redirect Types
Let’s say you want to switch to a new domain because it represents your business better. You need to know how to redirect your domain properly. In this article, we’ll learn what a URL redirect is, how to forward your URL, and when you should do it.
What Is a URL Redirect?
When you redirect a URL, you’re simply forwarding it to another address on the same, or different domain. You can set up a redirect that sends visitors to your new domain name when they’ll try to access a URL that belonged to your old domain.
How to Redirect a Domain?
The easiest way to redirect a URL is by using your hosting provider’s control panel. For this tutorial, we’ll be using the hPanel:
- Go to the hPanel. Under the Domain category, choose the Redirects menu.
- You’ll see the Create a Redirect section. Here, you’ll need to fill in which URL you want to Redirect and where you want it to Redirect To. Make sure your information is correct and choose the right connection protocol – HTTP or HTTPS.
- Click Create once you’re done. Check the List of Redirects to ensure the information is correct.
- Once redirected, you’ll see the target URL (www.google.com) when accessing the original URL (www.hostinger-dev-6.xyz). You might need to wait a few minutes for the new redirect to go live.
You should be able to follow these steps on almost any cPanel, as the process is very similar.
Take note that the redirect above uses the 301 redirect type, as stated on the hPanel. What does that mean? Let’s learn more about domain redirect types.
Pro Tip
If you use a non-www URL you can redirect it to a www URL to help improve your website perfomance.
What Are Domain Redirect Types?
Depending on its duration and state, there are a few types of domain redirects:
301 Redirect – Unmasked
A 301 redirect is a permanent redirect. It is used when you don’t intend to use the original URL anymore. The redirect is also unmasked, meaning your visitors will see the URL change in their browsers.
This redirect is good for SEO since you can keep the search ranking of the old domain. 301 redirects tell the search engine that the two domains are for the same website, but operations are moved to a new domain.
302 Redirect – Unmasked
302 redirects are temporary. They are also unmasked so your visitors will notice the URL change.
You can use this redirect when your website is under heavy maintenance. In other situations, you can implement a 302 redirect when performing A/B testing.
URL Frame – Masked
Unlike the two other types, the URL frame is a masked redirect. That means your visitors will see the exact URL they typed in their browser while, in fact, they’re viewing another URL.
Not only that, as its name suggests, the URL frame doesn’t redirect to a specific webpage but displays a frame from it.
Hiding the original domain is often used by someone who uses a free hosting service. Free hosting requires you to use a subdomain unless you upgrade to a premium plan.
However, if you use a paid hosting service and care about SEO, you should avoid this method. The same content found on two separate URLs causes duplicate content. Search engines will pick one URL over the other that might not be your preference.
It’s worth mentioning that not all hosting providers allow this type of redirect. So, if you ever run into any issues when applying a URL frame redirect, contact your support for more information.
Meta Refresh
A meta refresh is quite different from the other three types since it happens on the client-side – the browser itself.
This redirect uses a unique meta tag placed in the head section of an HTML document:
<meta http-equiv="Refresh" content=“6; url=http://www.hostinger-dev-6.xyz/“ />
Although a meta refresh can be effective for displaying ads while the countdown timer is running, it’s typically frowned upon. First, it risks your site’s credibility because visitors might assume that it has a security issue. Plus, it can negatively impact SEO, if the search engines consider the redirect as mere spam. This may result in your website or page getting deindexed.
Why Do I Need to Redirect My Website?
There are plenty of situations where redirecting a domain or URL can be useful. The most common reasons are:
- Having duplicate content. Multiple posts that contain the same content can negatively impact SEO. Search engines can’t decide which URL is the correct one and which one to rank on the SERP.
- Managing multiple domains. Instead of using multiple domains to display the same page, you can instead redirect them to the main one.
- Migrating to a new domain. Again, you can permanently redirect an old domain to a new one by using a 301 redirect type. This carries over Google PageRank and other SEO factors like page authority.
- Changing a post’s URL. You can avoid the 404 error by redirecting any deleted page URLs to a new one.
Final Words
A URL redirect is a common practice which isn’t hard to do. Simply specify your old URL and forward it to a new one. However, you must do some research and decide which type of redirect is best for your situation and ensure you’re not creating redirect loops. This way you’ll avoid negatively impacting SEO and credibility.
Let’s recap the four most common redirect types:
- 301 redirect is a permanent redirect that shows the new URL and carries over Google PageRank.
- 302 redirects are temporary and display the new URL.
- URL frames are redirects that display a frame from the website you’re redirecting to.
- Meta refresh is a redirect that happens in the browser. It shows a specific message and a countdown timer before redirecting to a different page.
Redirecting URLs is great for avoiding issues caused by duplicate content, when using multiple domains, switching to a newly purchased domain such as: .com, .net, or .xyz, and when trying to prevent 404 error pages.
Good luck!
Comments
April 24 2017
Hello! Is the hostinger redirect is a 301 type? Thank you!
April 25 2017
Hello, Yep, that's correct. Of couse, you can use 302 redirect if you wish.
April 29 2020
Has the menu system changed? I don't see this menu.
April 30 2020
Hey, Stuart, in order to find this menu, go to your hPanel -> press Manage on the domain where you will be adding Redirects -> Scroll down a bit and you will find the Redirects option.
May 23 2021
Experiencing the same problem as Stuart, I can't see this menu at the end of the "Domain Overview" page or anywhere else
May 27 2021
Hi Alex, To find the menu, go to your hPanel -> press Manage (on the domain where you will be adding Redirects) -> Scroll down a bit and you will find the Redirects option.
July 28 2021
Where would I look to see if a meta refresh is set up? I've checked the site's header code and also the header.php file but I am stumped. The issue is that I have a domain redirected but I can't find where it's redirect is set up. Checked domain DNS (not set up), checked add on domain and cPanel redirects (also not setup), checked .htacess and index.php (not there) so now I am trying to see if a meta refresh is set up but I can't find that either. It seems possible though as it takes at least 4 seconds to wait for the redirect to happen. Thanks for any help
September 17 2021
Hi Tess, for meta refresh, check the section of your page using Inspect Tool. Additionally, make sure to look through parked domains section on your control panel and the database of your website to see if you can find the redirect. Good luck!
August 19 2021
When you redirect via your cpanel, does the old site have to remain active for a period of time until this redirect propagates to the internet, or does it happen immediately where you can take the old site down right away??
September 20 2021
Hi Dave! If you set the redirect well, the redirection from control panel should be immediate. However, if the old website goes down (e.g. domain expires, it's removed from a hosting plan, etc.), the redirect will disappear. This doesn't mean that you cannot remove the old website's files and associated data, you can surely do that as they're not reflected online anymore - just make sure to keep the domain name alive and added to your hosting plan :)
June 17 2022
How can I use redirect websites to get backlinks?
July 14 2022
Hey! If you wish to redirect website while maintaining the backlinks, you would need to use 301 redirect 😊
June 25 2022
I want to use url frame redirection option how to do that
July 01 2022
If you wish for your website's content to be reflected on another domain without creating a redirect from one domain to another, you can simply park the domain. You can learn how to do it here! 😊