How to redirect 301 and 302 domains

Registering the same domain with different extensions is common, for example we register a domain .com and another .es and we want to redirect the .es to .com, so that when visitors write our domain with either of the two extensions, both are redirected to the same website.

We can also register the domain we want and redirect it to a specific url, whether it is the web or not, this will always depend on the needs of each project, the possibilities are several.

Let’s see how we can do it in the cPanel control panels that we use at Host-Fusion.Com and what steps we must follow:

  1. That the domain is registered and uses the nameservers of our hosting.
  2. Set the domain to redirect as Alias ​​in our cPanel.
  3. Domain redirection 301 (Permanent) or 302 (Temporary)

1 – Register a domain and use the nameservers (DNS) of our hosting

To register a domain you can do it directly from our website at Register a domain.

Search for your perfect domain name

In Host-Fusion unless you indicate otherwise, the domain is registered with the nameservers (DNS) of our servers, so you will rarely have to change these values, in any case, in your client area you can always manage your domain to make changes to nameservers whenever you want.

Once we have our domain registered, the next step is to associate it with our hosting with Alias ​​(domain parking) which will provide a DNS manager and the possibility of redirecting the domain wherever we want.

2 – Have the domain to redirect as Alias ​​in our cPanel

We must access our cPanel and in the domain section, click on the icon Alias.

cPanel, domain section, Alias ​​tool to park a domain

We click on Alias, with the aim of putting the domain in parking in the hosting and being able to manage the redirection of the same and provide that domain with the possibility of creating email accounts for example or even configure it to manage the mail of this domain in parking with GSuite and have the email on the Google platform, although we will talk about this in another post.

In our example case we are going to add the domain to the hosting associated with the domain, that is to say, put an extra domain on top of the main domain of the hosting.

Remember that it is essential that the domain is registered and that it has the nameservers of our hosting.

Create new Aliases in cPanel

We just have to write the domain name without https: // or 3 W in the Domain box and press the button Add domain. We will obtain the following result:

3 – Domain Redirection 301 (Permanent) or 302 (Temporary)

From now on we already have the extra domain in parking and we can manage its redirection.

Domain aliases and Manage redirect

Just by putting the domain as Alias, it already points to the public root of our hosting, but it is advisable to manage the redirection so that it is a 301 Permanent or 302 Temporary redirection, which are the ones that Google will take into account and not penalize you, so we click on Manage Redirection.

This is the fastest way to redirect the domain or urls of this domain to wherever we want, in this case as we mentioned to the domain that we are using as a reference.

As we can see, this time we DO put the complete url with https: // and the 3 W.

But if we want a more complete redirection, it is advisable to use the Redirect tool in the Domains section of our cPanel

CPanel redirect tool

We click on the Redirect icon to go to the next more complete screen, in which we can select the domain, the type of redirection 301 or 302, where to redirect and if we want that redirection to be done with or without 3 W or what do not redirect with 3W.

Advanced redirection

Create email accounts associated with the new domain

As I mentioned before, one of the advantages of being able to put a domain as Alias ​​is that we can also create email accounts associated with that domain, we can do this directly from cPanel in the Email section by clicking on the Accounts icon. mail and once inside Create.

Create email accounts

Even as mentioned above, we could configure the mail server and DNS of this new domain so that it uses GSuite as its mail manager, but we will show you this in a future post.

The best Hosting for WooCommerce