Redirect to www. with htaccess part II
There is a very handy plugin written by Mark Jaquith that allows you to redirect to www. with a convenient wordpress plugin. Many people including myself set up their blog and then realise later that it´s set up to ignore the www. Obviously, if you´re really slow (like me) you only realise once you´ve got quite a few incoming links.
Mark´s plugin ensures that your blog pages don’t lose page rank and that you will get a clean 301 redirect which is search engine friendly and will make the Googlebot rejoice.
In an earlier post I already gave you the plain .htaccess method for enforcing www.
At the moment I´m also looking into a PHP method to achieve the same goal with headers but that is still being tested. I´ll keep you posted.
P.s. When you are messing around with .htaccess and you delete your directives and the redirection still seems to persist you need to clear your browser cache! Took me a whole day to figure this out…