boxturt Posted December 30, 2005 Posted December 30, 2005 Greetings, I need to redirect an entire subdomain to a completely new domain eg: sub.**** to mynewdomain.com All the pages from sub.domain.com only need to go to the new index page ( I don't think I need a page by page redirect.) 1) Can I do that with one permanent redirect (in cpanel)? 2) Do I need to do it twice? Once for 'www' and once without? I have nice SE placements and I don't want to mess this up so any suggestions as to the best way to go about this would be greatly appreciated. As always - Thanks. ps - I don't know why those **** are up there....... not relevent Quote
TCH-Andy Posted December 30, 2005 Posted December 30, 2005 I'd just use a simple redirect. Anything going to your subdomain gets redirected to the index of the new domain. You should only need one redirect in the subdomain. Quote
TCH-Rob Posted December 30, 2005 Posted December 30, 2005 To do that, log into your cPanel and select the subdomains section. In there you will see an option to redirect your subdomain. Follow it and it should take care of you. Quote
OldTimer Posted December 30, 2005 Posted December 30, 2005 This article may help: http://www.tamingthebeast.net/articles3/sp...01-redirect.htm Quote
boxturt Posted December 31, 2005 Author Posted December 31, 2005 Thanks very much, it's pretty much what I thought and I shall give it a go. OldTimer - good article, thank you. ........... will now attempt the redirect whilst wearing his new, magic birthday socks .......... Quote
boxturt Posted December 31, 2005 Author Posted December 31, 2005 (edited) Well............. Works fine except for the internal links. Doesn't seem right........... Any great ideas or do I get to redo all the links? Blea. ..........magic socks my.............. Later......... May be able to fix it. The internal links are absolute and full to mydomain/subdomain/index.html If I dump the 'index.html" from the url then the redirect works fine. Edited December 31, 2005 by boxturt Quote
boxturt Posted January 1, 2006 Author Posted January 1, 2006 Rats. Not working right. //:sub.domain.com is not being redirected but //:domain.com/sub IS redirecting. I currently have a "This site has permanently moved to ht_p://new_place.com....." notice at the old location. What meta robot instructions should I have? "NOINDEX, NOFOLLOW" or "INDEX, FOLLOW"? Currently it is index,follow and no meta refresh tag. Thanks. Quote
TCH-Andy Posted January 1, 2006 Posted January 1, 2006 Have you tried a simple redirect (of everything) in the .htaccess of the subdomain ? Quote
boxturt Posted January 1, 2006 Author Posted January 1, 2006 (edited) Um....well....... I have RedirectMatch permanent ^/subfolder/$ h_tp://newdomain.com What I do not have is redirect 301 /subfolder h_tp://newdomain.com but I shall try it. moments later........... Didn't work either Edited January 1, 2006 by boxturt Quote
TCH-Andy Posted January 2, 2006 Posted January 2, 2006 Instead of putting it in your main .htaccess file. Go into that folder, and open (or create if it doesn't exist) a .htaccess file. Then use >RewriteEngine On RewriteRule ^(.*)$ http:/newdomain.com/$1 [R=301,L] Quote
boxturt Posted January 2, 2006 Author Posted January 2, 2006 Beautiful! Works like a charm - thank you. (and boy do I feel dumb) Sometimes it sure does help to get an extra hand. Quote
TCH-Andy Posted January 2, 2006 Posted January 2, 2006 You're welcome I'm glad it's all working Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.