Switch Domains on Website

Avatar
  • updated
  • Answered

 I currently have a domain (www.mindfulnessinorganizations.com) redirecting to another domain website (www.mindfulnessinacademia.com). I own them both.  Can I get rid of the first domain that the original website was set up under and just use the organization domain.  Currently when it redirects, it resets to the academia url and some find that confusing.  Thank you for your help and time!

Avatar
IMH Support Agent 2
Quote from clustik

Hello Arnel;

I originally created the website under Mindfulness in Academia, but soon started using the name Mindfulness in Organizations and have people using mindfulness in organizations.com, and that is forwarding to the original mindfulness in academia.  When they type in www.mindfulnessinorganziations.com, I want that to stay the URL and not have it revert back to www.mindfulnessinacademia.com.
Christine

Hello Christine,

Thanks for clarifying the issue! Since your website code is saved under the www.mindfulnessinacademia.com URL, then you would need a redirect of some type to use a different URL for the site. This can be done within the .htaccess file.  I would recommend that you remove the current redirect (it sounds like you're using one), and then use the following code.  You will need to replace "example.com" and "example.net" with your respective domains.  The rewrite rule is what you want to appear in the browser.  The conditions are what people are typing into the browser.  

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC,OR]

RewriteCond %{HTTP_HOST} ^www.example.com [NC]

RewriteRule ^(.*)$ http://example.net/http://example.net/$1 [L,R=301,NC]

Basically, this code will re-write the URL in addition to re-directing them to the new domain.  If you want more information you can look at this article on Setting Up a Permanent 301 Redirect in .htaccess (I'm in the process of updating this article - I'll edit my reply in a few minutes with the article link)


Regards,

Arnel C..


Avatar
clustik
Quote from IMH Support Agent 2

Hello Clustik,

I was reviewing what you and Chris were discussing. So, let me make sure I understand this.  You currently have a domain (mindfulnessinorganizaations.com) redirecting to another domain (mindfulnessinacademia.com).  The website was created under mindfulnessinorganizations and you now want to keep them in that domain.  Right?

The redirect only changes the URL being used for the website - it doesn't move the files from their location.  So, if you want no longer use the re-direct, then you should simply remove it.  The newer URL would no longer be used.  I hope this clarifies the issue.  If you still require assistance or further explanation, please let us know.


Kindest regards,

Arnel C.

Hello Arnel;

I originally created the website under Mindfulness in Academia, but soon started using the name Mindfulness in Organizations and have people using mindfulness in organizations.com, and that is forwarding to the original mindfulness in academia.  When they type in www.mindfulnessinorganziations.com, I want that to stay the URL and not have it revert back to www.mindfulnessinacademia.com.
Christine

Avatar
IMH Support Agent 2
  • Answered
Quote from clustik

Thanks for your time and answer Chris.  I'm not sure I follow though. I want to keep mindfulness in organizations and I've been using that exclusively for a long time, but when they type that in, after getting to the site, the url line defaults back to mindfulness in academia, which is what they find confusing.  Do I have it set up wrong?  Is there a way to leave Mindfulness in academia but when people type in mindfulness in organizations it stays as mindfulness in organizations?
Christine

Hello Clustik,

I was reviewing what you and Chris were discussing. So, let me make sure I understand this.  You currently have a domain (mindfulnessinorganizaations.com) redirecting to another domain (mindfulnessinacademia.com).  The website was created under mindfulnessinorganizations and you now want to keep them in that domain.  Right?

The redirect only changes the URL being used for the website - it doesn't move the files from their location.  So, if you want no longer use the re-direct, then you should simply remove it.  The newer URL would no longer be used.  I hope this clarifies the issue.  If you still require assistance or further explanation, please let us know.


Kindest regards,

Arnel C.

Avatar
clustik
Quote from IMH Support Agent 3

If you want to keep using the latter domain, you should refer new visitors there directly. This way, new visitors will not see the redirect and older visitors will at least land in the correct location. You will want to keep the redirect operational until all your visitors (including future visitors) use the desired domain. 

Thanks for your time and answer Chris.  I'm not sure I follow though. I want to keep mindfulness in organizations and I've been using that exclusively for a long time, but when they type that in, after getting to the site, the url line defaults back to mindfulness in academia, which is what they find confusing.  Do I have it set up wrong?  Is there a way to leave Mindfulness in academia but when people type in mindfulness in organizations it stays as mindfulness in organizations?
Christine

Avatar
IMH Support Agent 3
  • Under review

If you want to keep using the latter domain, you should refer new visitors there directly. This way, new visitors will not see the redirect and older visitors will at least land in the correct location. You will want to keep the redirect operational until all your visitors (including future visitors) use the desired domain.