InMotion Hosting Support Center

At times you may want to 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 Domain Redirect in cPanel
Section 1: Wildcard Subdomains and DNS
Section 3: Adding an Add-on Domain in cPanel

Support Center Login

Social Media Login

Social Login Joomla

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
n/a Points
2016-10-11 7:24 am

Thank you this post was very useful and very helpful

12,692 Points
2016-10-11 7:28 am
That's great to hear. We love feedback!
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,661 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 let Google know to only crawl your HTTPS site.
n/a Points
2016-11-21 12:16 am

Can I do this for subdomains also?

43,611 Points
2016-11-21 7:10 pm
Yes, it will work for subdomains.
n/a Points
2017-04-06 7:44 am

Nice clear and easy process - thanks for the video

Post a Comment

Email Address:
Phone Number:

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

9 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!