Jump to content

Recommended Posts

Posted

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. :D

 

ps - I don't know why those **** are up there....... not relevent :)

Posted

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.

Posted

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 .......... :)

Posted (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 by boxturt
Posted

Rats. :D

 

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.

Posted (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 :D

Edited by boxturt
Posted

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]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...