InMotion Hosting Support Center

At times you may want to 301 domain redirect traffic from one domain to another domain. This can be done at the domain level or for specific web pages. For example, and it's web traffic can be redirected to OR can be redirected to In this guide we will show you how to create a redirect in your cPanel. This automatically adds a redirect rule to your .htaccess file for you.

Redirecting a Domain

  1. Login to cPanel.
  2. Click the Redirects button in the Domains section.
  3. You will then be on the Add Redirect page. Click the drop-down box for Type and choose if you want to create a Permanent (301), or Temporary (302) redirect.
  4. Click the next drop-down box and choose the domain you want to redirect.
  5. For the slash '/' field enter any folder names if necessary.
  6. Enter the address you want to redirect to in the Redirects to section.
  7. Choose if you want to "Only redirect with www." "Redirect with or without www." or "Do Not Redirect www."
  8. Check the box if you want to create a Wild Card Redirect. This will add the the file/folder name after the url when it redirect. For instance, would redirect to
  9. Click the Add button when you are finished.

  10. You are finished when you see a green message with the details of your redirect.

Congratulations, now you know how to create a redirect in your cPanel! You can also create a 301 redirect directly in your .htaccess file.

Continued Education in Course 203: Managing your Domains in cPanel
You are viewing Section 2: How to Setup a 301 Domain Redirect in cPanel
Section 3: How to Add an Addon Domain in cPanel

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

n/a Points
2018-02-09 1:14 pm

I want to forward/ redirect my website to another hosted url but with MASKING. how to do that?

viz. to but it should show as only as the backend url is masked

2,041 Points
2018-02-09 1:20 pm
Domain masking is prohibited. You will need to contact a developer for further assistance in masking your domain name to your visitors.
n/a Points
2017-11-15 6:08 am

how will i redirect like link to another links for all the link in domainA to redirect all the link in domainB for example to

40,993 Points
2017-11-15 10:57 am
Your example was two identical domains. Don't redirect like that, it would not work. The instructions tell you how to use the interface in cPanel to create a redirect. If you require specific cases of redirects such as redirecting all the links from domain A to domain B, then check out the instructions provided in Setting up a 301 permanent redirect.
n/a Points
2017-10-20 4:30 pm

Hi.What if I want to redirect a domain name to another domain but wanted to retain the very domain name in the search var?For example I have a new Domain name www.domainA.comand I want it to be redirected to but on the same way you still wanted to see in your search var.How am I going to do this?Thank you

2,041 Points
2017-10-20 6:03 pm
I'm sorry, cPanel does not have an option to add domains to manage in this manner. Creating an Alias domain and redirecting each link would be the only way to accomplish keeping both domains with the same content.
n/a Points
2017-09-13 3:38 am

Question: I have got an issue on google redirection when i search on google my domain it shows same on desktop such as but it seems something different in mobile wherein i insist to see such as after having redirected by anyone on google search engine. It does not matter that it looks same in desktop and mobile but after once clicked by anyone on their mobile it should see like on behalf of 

40,993 Points
2017-09-13 10:47 am

Sorry for the confusion with the re-direct issue with your mobile site. I'm not 100$% what the issue is, but it seems that if someone is looking in Google and goes to your site from a mobile device, then it should convert to the mobile site. Your website should be able to determine the device that is requesting to view your site and convert the URL to the correct URL -be it for desktop or a mobile device. If it's not doing that, then you will need to consult with a developer/programmer or the appropriate support personnel (developer of your software) in order to correct the issue.

I hope this helps to answer your question, please let us know if you require any further assistance.

Arnel C.
n/a Points
2017-09-07 4:56 pm

If I set up a redirect in cpanel from to, will the 

email functionality still work as before the redirect?

I.E.  Will email to by handled correctly

without being routed to ?

30,637 Points
2017-09-07 5:49 pm
No, this should not affect your email functionality.

Thank you,
n/a Points
2017-08-05 8:49 am

How long does it take to redirect a domain to another? I redirected already but still no, does it take 24hours to redirect? 

10,285 Points
2017-08-07 9:53 am
I advise double-checking your DNS settings, to make sure that domain is pointing to the server where the redirect is happening. Once that is clear, you may want to clear your browser cache as well.
40,993 Points
2017-07-05 6:20 pm
Hello Chris,

Redirects only affect the website you're re-directing FROM. You have to look closely at the link that people are getting the 404 error. Remember that web servers receive a REQUEST for a specific URL. So, if you're on a website the URL brings you to that server. The redirect would act on that request and re-direct you to the new location. I hope that's clear. You would only make changes where you want to re-direct from.

If you have any further questions or comments, please let us know.

Arnel C.
n/a Points
2017-06-24 2:46 am

Thank you. Shows it is done. It appears it may take a while for the redirect ot go through. I will check to be sure it is working tomorrow. 

13,821 Points
2017-06-26 7:07 am
This redirect should be almost instantaneous. If it's not working, you can remove it and try it again. If that doesn't work you may want to reach out to the Support department for further assistance.
n/a Points
2017-04-06 7:44 am

Nice clear and easy process - thanks for the video

n/a Points
2016-11-21 12:16 am

Can I do this for subdomains also?

43,761 Points
2016-11-21 7:10 pm
Yes, it will work for subdomains.
n/a Points
2016-10-28 12:40 pm

Hi, I got a redirect installed on my domain it works except that when Google shows my website it refers it to the http version. My htaccess file looks like this:

RewriteOptions inherit

RewriteEngine on

RewriteCond %{HTTP_HOST} ^$ [NC]

RewriteRule ^(.*)$1 [R=301,L]

# RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ [NC]

# RewriteRule ^(.*)$1 [R=301,L]

# Force www: from

# RewriteCond %{HTTP_HOST} !^$

# RewriteCond %{HTTP_HOST} !^www\. [NC]

# RewriteCond %{HTTPS}s ^on(s)|

# RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Plus other redirects for individual pages such as:

# RewriteCond %{HTTP_HOST} ^mydomain\.com$ [OR]

# RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$

# RewriteRule ^fr\/index\.html$ "http\:\/\/www\.mydomain\.com\/fr\/index\.php" [R=301,L]


2,858 Points
2016-10-28 1:20 pm
Lisa, .htaccess redirects won't affect how Google crawls your website. It will however redirect anyone that actually navigates to the page you have set up for the redirect. You will need to <a href="">let Google know to only crawl your HTTPS site</a>.
n/a Points
2016-10-11 7:24 am

Thank you this post was very useful and very helpful

13,821 Points
2016-10-11 7:28 am
That's great to hear. We love feedback!

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

28 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!