PDA

View Full Version : Understanding 301 redirects


sitemeister
07-07-2007, 03:00 PM
Let's say I own redwidgets.com and red-widgets.com. For years I have simply pointed red-widgets.com to redwidgets.com as a domain pointer using DNS. After reading through these forums I've learned that it's best to set up a 301 redirect however, to avoid being penalized for content/site duplication issues. So I set up red-widgets.com with a 301 redirect using this syntax:

Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: h ttp://www.redwidgets.com" ); (I added the space after the "h")

Now when I go to access red-widgets.com, shouldn't the address bar show redwidgets.com or still show red-widgets.com? I was under the impression that it would send me to the new url. Am I wrong?

sitemeister
07-07-2007, 03:06 PM
OK, I think I figured this out. We had the old domain still pointing to the ip of the new domain. Seems to be properly redirecting now.

beu
07-07-2007, 11:36 PM
You might also check with http://www.rexswain.com/httpview.html