Setting up a domain redirect

8 replies
Found 18th Nov 2008
Any web gurus?

basically weve registered a new domain and want to redirect the old one to the new one so we dont lose our search rankings.

Do we need hosting to do a 301 redirect? How is it done?

Thanks

  1. Misc
  2. Domain
Groups
  1. Misc
  2. Domain
8 Comments

You need to log into you domain account. You should find the part you need to add the address of the your site. I use 1&1 and it is straight forward enough. Have set up three domains for the same site (because I have sub-sections on my site that others use).

who did you take the domain out with?

create a new page called index.php on the hosting for your old domain,

add the following code


<?php
header( 'Location: yoursite.com/new…tml' ) ;
?>

change the url to your new url

that should work

Banned

I don't get the question?

Are you saying you want to use a domain name on a website you are currently using eg [url]www.freebie.somehost.com[/url] so you just type in [url]www.mydomain.com[/url]

First bit of advice... if it is a freebie subdomain account - your search engine rankings are already down graded. You'd be better off with the unique domain name - rather than a sub domain.

Anyway - you've a couple of choices - all done within the control panel of the domain host...

You can either use "web-forwarding" - which is basically a masked diversion. It can be inside a frame (so it always shows [url]www.yourdomain.com[/url]) or can be a complete re-direct (so will show the site as it does now.) Either way - thats not the best way to do it!

Hopefully the site host has Nameserver tags.. If they have you need to re-asign the nameserver on the domain host. This is the better option to take if its available to you. I wouldnt worry about search engines... it wouldnt go down if you did this.

guv;3495618

You can either use "web-forwarding" - which is basically a masked … You can either use "web-forwarding" - which is basically a masked diversion. It can be inside a frame (so it always shows [url]www.yourdomain.com[/url]) or can be a complete re-direct (so will show the site as it does now.) Either way - thats not the best way to do it!



That was my interpretation of the question.

Original Poster

Sorry guys, i forgot that i dont get subscribed to threads i make.
both my domains are on 123-reg. We use a company called shopify that has hosted shopping solutions.
At the moment we have (i'll say) XXX.com.
we now have decided xxx.com isnt relevant for searches and is too long, so have registered yyy.com.
I have changed all the DNS on the new domain to point to our servers and will keep the 1st domain redirecting. google tells me if i do not put a 301 redirect in i will lose my google rank for the current domain. Do i need to register a hosting account to do a 301 redirect?
Hope ive explained it a bit better.
Thanks guys

Banned

OK - if I read this correctly now.... you have a host that your first domain was pointed to and now you have a second. By the sounds of things, the first one isnt being dropped (or is it?)

Either way, from what Ive just read, this 301 divert is literally just something to help search engines now the site is in a new location (so the robots know and use all the links it already has.)

It sounds like its just a temporary thing - and not using, may affect for a couple of weeks - but soon after the site with its new domain will be back where it was in stature and maybe higher (if the domain is now more relevant as a name.)

One thing though - why did you change the DNS with 123-reg? All you really needed to do was change the nameservers!

Original Poster

I think it was the name servers not the DNS, my bad. I am trying to avoid the dredded "sandboxing"

The first one will not be dropped if i leave it how it is but i will have to do some testing to see how it is currently working.

Thanks for the help
Post a comment
Avatar
@
    Text
    Top Discussions
    1. Topcashback trick or treat cashback giveaway23
    2. disneyland paris tickets44
    3. Tomtop Xiaomi Mi A1 deal removed433
    4. Amazon deliveries36

    See more discussions