301 Redirect

They have: 3 posts

Joined: Feb 2006

I'm sorry if this is a stupid question, but a client of mine has two domains, and would like 2nd domain to point to the 1st website via a 301 redirect.

I have redirected sites using frames before (which is probably what they don't want), so what redirect is the 301 one?

Enlightenment on this would be greatly appreciated!

They have: 3 posts

Joined: Feb 2006

Thanks for the links, but it doesn't quite explain what it is. Can anyone give me an example of it so I understand it correctly?

They have: 30 posts

Joined: Mar 2006

WWWD wrote: Thanks for the links, but it doesn't quite explain what it is. Can anyone give me an example of it so I understand it correctly?

Permanent redirect, so it does two things:

1. Redirects users to the (new) destination
2. Tells browsers and robots that the original domain/page has been moved permanently

chrishirst's picture

He has: 379 posts

Joined: Apr 2005

It's a HTTP response that tells user agents that the URI requested has moved and where it can be found
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Chris

Indifference will be the downfall of mankind, but who cares?
Venue Capacity Monitoring
Code Samples

Busy's picture

He has: 6,151 posts

Joined: May 2001

create a file called .htaccess, inside put

redirect 301 /2nd domain/ http://www.1st domain/

then upload that your root directory (base folder)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.