Correctly redirecting secondary domains to a primary domain

Posted by on Mar 23, 2009 in Web Development | No Comments

Ok, so say you want everyone who goes to to be magically redirected (in a search engine-friendly manner) to Lots of reasons you might want to do this, but most relate to analytics. Google has a handy guide just for you.

In short, though, you’re setting your web server to 301 (permanent redirect) all requests to certain domains over to the preferred domain. Doing it as the server level means you don’t have to do it at the script level (no PHP or ASP scripts doing redirects here). Check out the article for specifics.

Leave a Reply

You must be logged in to post a comment.