InMotion Hosting Support Center

At times, you may want to re-direct traffic from one domain to another domain. This can be done at the domain level or for specific web pages. For example, domain.com and it's web traffic can be redirected to anotherdomain.com OR domain.com/aboutus.html can be redirected to anotherdomain.com/about.html

In this guide we will show you how to create a redirect in your cPanel.

How to Setup a Redirect

  1. Login to cPanel.
  2. Under the domains section select the Redirects icon.
    redirect1_copy
  3. On the next screen, fill in the boxes as needed and click the add button.
    2redirect

Congratulations, now you know how to create a redirect in your cPanel! cPanel offers many more tools for domain handling, be sure to check out all the cPanel features.

Continue to the next article on Wildcard Subdomains and DNS, or if you missed our previous article, please see the Creating a Subdomain in cPanel tutorial. For more information on this course please visit Managing your Domains in cPanel.

Continued Education in Course 203: Managing your Domains in cPanel
You are viewing Section 5: Setting up a Redirect for a Domain in your cPanel
Section 4: Creating a Subdomain in cPanel
Section 6: Wildcard Subdomains and DNS
n/a Points
2014-08-25 4:40 pm

Super. It helped me/

n/a Points
2014-09-02 12:13 am

hi there, thanks for this article. i'd been struggling to permanently redirect my webiste while i dont have any knowledge or some one to teach me.

 

and i am afraid that i will ruin my site.

 

with this article i successfully permanently redirect to non www format >.<

 

thanks a lot

 

Regards

http://portalprediksi.com

n/a Points
2014-10-09 5:38 am

Dear All !

I am facing problem when i redirect my http://dramasbook.com to my new domain http://drama15.com error 701 BH. I am unable to understand what kind of this error is. please define this if any body know about this error 701 BH.

Staff
28,398 Points
2014-10-09 8:35 am
Hello Mujahid,

I am unfamiliar with the error. I could not locate any information on it using Google. I tried to go to the domain that you said redirected but it did not work. If you could provide the full error text or give examples as to how to duplicate it, that may be helpful.

Kindest Regards,
Scott M
n/a Points
2014-10-14 3:37 am

How do  I point my sub-domain to new URL instead of redirecting it. I believe both are different things

Staff
28,398 Points
2014-10-14 7:53 am
Hello Shahed,

When you point any URL to another, it is a redirect. You would just use the same instructions as above.

Kindest Regards,
Scott M
n/a Points
2014-10-14 8:34 am

So Redirecting to URL as shown in article above,  and pointing using an A-record or CNAME are both basically the same things.  Thanks for clarifying 

n/a Points
2014-10-22 11:22 am

Hello

i've hosted my application with a subdirectory under root public_html (/public_html/myDocs/output/menu.php)

This (myDocs/output/) is matchning my development tool  i using to develop and it is easy to copy and paste the myDocs dorectory with the Filezilla i'm using.

Now i dont want the user to type www.MyDomain.net/myDocs/output/menu.php to access the application,

but only www.myDomain.net

How can i do that ?

thank you for your assistance.

best regards

 

 

 

Staff
11,186 Points
2014-11-11 10:37 am
To handle the redirect, you would simply follow the steps in this article and enter the path that you want to redirect to in the last field.
n/a Points
2015-01-03 5:08 am

Hello,

I want to redirect my website from sitename.com to http://www.sitename.com. I did this from cPanel but it seems that it does not works. Can anoyone please help me? Here is what I have in .htaccess :

RewriteEngine on

RewriteCond %{HTTP_HOST} ^sitename.com$

RewriteRule ^/?$ "http\:\/\/www\.sitename\.com\/" [R=301,L]

 

Best Regards,

Petru Csokany

 

Staff
28,398 Points
2015-01-05 12:27 pm
Hello Petru,

We have an article on how to force www for your website. This should work without issue. Once you implement the code, be sure to clear your browser cache as well.

Kindest Regards,
Scott M
n/a Points
2015-01-12 9:43 am

Hi,

I have redirected link" zoom2properties.com /property/152" to "http://www.zoom2properties.com/en/property/152". My new links added with a extra"/en/" in the URL. 

I used control panel Redirect option to do the above. But it does not working. When I checked with my host company they said problem with.htacess file.

But if i do any modification to .htaccess file to correct redirect then some other web functionality will not work. 

Kindly help me to figure out the issue. My webmater tool is throwing lot of 404 error because of this. My old links are throwing up in google organic search result but unable to redirect the correct pages.

Regards

Raj Alva

Staff
25,386 Points
2015-01-12 10:13 am
Hello Raj,

Sorry that you're having problems with your .htaccess file. Unfortunately, since you are not using our hosting we cannot see your .htaccess file in order to troubleshoot the issue. Check out our article Setting Up a 301 Permanent Redirect via .htaccess for how the re-direct should properly appear in your .htaccess file.

Kindest regards,
Arnel C.
n/a Points
2015-02-07 7:58 am

Hi I have an unusual one, well one that no-one has written about

Old domain to new domain, (I have also used wordpress for the new domain)

My structure and url's have totally changed, so the new website is nothing like the old one.

Questions I am running into

Do I redirect just the site via a 301 redirect  or 

Do i redirect the olddomain.com to the newdomain.com and do each separate page as well?

Last question promise  :-

Do I place the 301 redirects in the old domain htaccess file or the new domains htaccess file?

Staff
28,398 Points
2015-02-09 11:09 am
Hello Juanita,

Since your structure is completely different, to redirect each page to a specific page on the new site, you would need to do each page individually.

The easiest would be to set the 301 for the domain so that they land on the front page of your new site and then they can navigate from there.

The 301 redirect should be in the htaccess of the old domain.

Kindest Regards,
Scott M
n/a Points
2015-02-10 10:15 pm

I put in a redirect for our addon domain jakks.net.cn to redirect to jakks.com. I told it to do the redirect whether or not the user uses a www in the url. However, the redirect only works when the user puts in the www. Is there something I'm missing? Thanks.

Staff
25,386 Points
2015-02-11 11:20 am
Hello Marty,

Sorry for the problem with the domain. When we looked at the WHOIS for the domain jakks.net.cn, we saw that it was not pointed to our name servers. This means that the DNS settings here would not apply because we do not control the domain. If you could please change the nameservers to point to our hosting service, then anything that you've done (such as re-direction) will work based on our settings.

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

Regards,
Arnel C.
n/a Points
2015-03-04 5:30 pm
I needed to correct a step on a domain I tried to create. I couldn't delete it or correct it. I should have had dynami78/ before smartdynamicsofmasonry. How do I fix it or how do I delete the domain name so I can start over.
n/a Points
2015-03-21 6:44 am

My own case is a lil different. I want to redirect a subdomain sub.domain.com to external URL www.domain.com/name. But I do not want the target URL to show on the address bar of viewing browsers. How do I achieve this?

 

n/a Points
2015-03-21 4:55 pm
Tell us how the domains we wish to redirect shows up in the dropdown list.
Staff
28,398 Points
2015-03-22 8:29 am
Hello Sarah,

The domains you want to redirect in the dropdown list are either the primary domain or addon domains that you have added to your account.

Kindest Regards,
Scott M
n/a Points
2015-03-26 2:53 am

Hello Friends i want to redirect my website https to http for special resion. any one please guid me.

Website CMS WordPress link : http://www.indiaresultz.org

Thanks

Staff
17,092 Points
2015-03-26 10:07 am
Hello IGNOU,

Thank you for your question. Since you are using WordPress, just implement http instead of https.

Since WordPress can modify your .htaccess file, this will implement the redirect rule.

Thank you,
John-Paul
n/a Points
2015-04-04 12:17 am

Thanks johnpaulb-imhs1

IGNOU

2015-03-31 10:50 am
I purchased web-hosting for the .com and then added three other extensions (.net, .org, .biz). I have verified all four. The new additional extensions are not showing in the cPanel to allow me to redirect them to my .com page. The new extensions also are not available online. How do I add the additional extensions to my cPanel so I can redirect them?
Staff
4,157 Points
2015-03-31 11:13 am
Hello,

You can add them as either addon domains or parked domains. I would suggest parked domains as they are meant to be redirected back to the primary domain.

Best Regards,
TJ Edens
n/a Points
2015-04-06 11:48 pm

Pls i need anyone to help me out! i am redirecting a url www.abcdefg.com.ng to another www.anexternalurl.com/myname     i don't want the visitors to know they are being redirected. most importantly,  I DON'T WANT THE TARGET URL ''anexternalurl.com/myname" TO DISPLAY ON THE VISITOR'S BROWSER

Staff
28,398 Points
2015-04-07 8:26 am
Hello bolaji,

Once the redirect occurs, the new URL will display in the address bar of the browser, so the user will see that URL.

Kindest Regards,
Scott M
n/a Points
2015-04-08 5:22 am

hii i m trying to open my cpanel by using my domain name (ex-www.mydomainname.com/cpanel)but its open mydomainname.com?folio=7POYGN0G2,i did redirecting work as describe above

but it does not work..pls help

Staff
28,398 Points
2015-04-08 9:13 am
Hello Am,

It sounds like you have a redirect interfering. You will want to go through the htaccess file to see if you can find the offending rule and comment it out.

Kindest Regards,
Scott M
n/a Points
2015-05-06 10:49 pm

sorry for bad english, iam from indonesia.

can u help me, i am IT support in school which have a website. www.*****-amabilis.org , this website is old and we want to redirect it to our new future website. but it have different panel it use vitual web cms 1.4.1 and i can't find the redirect icon. can u help us, if yes i will send you the login and the password. Thank u.

Staff
17,092 Points
2015-05-07 10:10 am
Hello Cesco,

Thank you for contacting us. I looked at your domain, and it is hosted by Dreamhost. I do not believe they use cPanel like us.

In this case you may be able to create a 301 redirect manually in your .htaccess file.

Thank you,
John-Paul
n/a Points
2015-06-04 7:05 am

Hi guys, maybe im mising something here.....if one purchases a new dominio name from one provider, and leaves the dominio registered with that original registrar, but then point the A record to another provider where he stores his website...how do they know that this new domino belongs to who to let them develop the website.

 

just trying to understand how this stuff works

Staff
17,092 Points
2015-06-04 2:33 pm
Hello Pablo,

Thank you for contacting us. When you add the domain to your cPanel, it will create the DNS record automatically.

This will allow our servers to deliver your site, when the 'A record' directs traffic to us.

If you have any further questions, feel free to post them below.

Thank you,
John-Paul
n/a Points
2015-07-10 3:33 am
hello frnz,   I haved accidently redirected my domain to one of my primary domain.how can i reset this redirection??? 
Staff
17,092 Points
2015-07-10 12:35 pm
Hello priyanka,

Thank you for contacting us. When you setup a redirect in cPanel, it just adds a rule to your .htaccess file. This is explained in the video above.

You should be able to view the .htaccess rule, and remove it there if you are unable to delete it .

Thank you,
John-Paul
n/a Points
2015-07-19 7:11 pm

Will this work for a subdomain?  In other words, can I redirect a domain to a subdomain?  I want to create a prestashop site and I'd like to place a custom "coming soon" template that includes multiple files and folders on the subdomain and direct visitors to that while I get the shop built.

Staff
28,398 Points
2015-07-20 4:33 pm
Hello Dan,

Yes, this will also work with subdomains.

Kindest Regards,
Scott M

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

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

38 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

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: support@InMotionHosting.com
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!