2 methods of Google-friendly 301 redirection: PHP, Apache .htaccess

Google dont't like indexing a duplicated content. Have you got more domains that point to the same content? Is your site available at www and non-www version of the domain? (example: www.bitprison.net and bitprison.net point to same content) More domain point to my blog: bitprison.com, bitprison.net, bitprison.org and bitprison.hu. I need a solution for avoid duplicated content. I've chosen 301 redirection that google recommends for webmaters in case of duplicated content. It may help Google to determine PageRank for your site more accurately.

Now I'm sharing with you two ways of redirection.

Blog categories:  Programming  Linux