Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: How to change the sub domain name to a full domain name

How to change the sub domain name to a full domain name 10 months 3 weeks ago #50466

  • mwathani
  • mwathani's Avatar
  • OFFLINE
  • OSTar
  • Posts: 107
  • Karma: 0
If i had a sub domain name and site, and the subdomain had an independent admin section. suppose i move that sub domain to a new domain name, functioning same way as the sub domain was. If i want to change the site name of the sub-domain to the name of the new domain name, where is one supposed to change the name from???
Please become a member of OSTraining to reply to this post.

How to change the sub domain name to a full domain name 10 months 3 weeks ago #50507

  • steve
  • steve's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3053
  • Thank you received: 163
  • Karma: 26
Hi mwathani

Normally if you want to move a site you can just do a 301 redirect with your .htaccess file.

That will work fine moving from a sub-domain to the new domain name.

Are you not sure how to do a 301 redirect or am I missing something else?
Ask. We'll help. It's as simple as that.

Follow us on Twitter - twitter.com/ostraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

How to change the sub domain name to a full domain name 10 months 3 weeks ago #50541

  • mwathani
  • mwathani's Avatar
  • OFFLINE
  • OSTar
  • Posts: 107
  • Karma: 0
yes, i want to know how to do that.
ALso, i would like to know how to ensure that its only the sub-domain files that get to move to the new domain site only.
kindly guide, i am still abit stuck here.

regards.

MW
Please become a member of OSTraining to reply to this post.

How to change the sub domain name to a full domain name 10 months 2 weeks ago #50637

  • Nick
  • Nick's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 16774
  • Thank you received: 379
  • Karma: 55
Hi MW,

In the .htaccess file of your old subdomain, you'd have to put the following code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.yournewdomain.com/$1 [R=301,L]

Replace "yournewdomain.com" with your actual domain.

By placing the above code within the .htaccess file of your old subdomain, it also ensures that only your old subdomain links are redirected to your new domain.

Hope this helps!

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Powered by Kunena Forum

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.