I accidentally discovered a super-cool re-direction feature embedded in WordPress 2.3.x.我不小心發現了一個超級酷的轉口功能,嵌入式方向,在WordPress 2.3.x. Any blog may have multiple url pointing to the same blog.任何博客,可能有多個網址,指向相同的博客。 For example blog.taragana.com may also be accessed as www.blog.taragana.com.例如blog.taragana.com也可能訪問作為www.blog.taragana.com 。 The proper practice, keeping SEO in mind, is to redirect all such URL to the canonical URL of the site.正確的做法,保持徐在心目中,是要重定向所有這些網址,以典型的網站的網址。 Now there is a simple way to achieve this.現在有一個簡單的方法來達到這個目的。

Previously you had to modify .htaccess or httpd.conf to accomplish it.以前,你不得不修改。 htaccess的或httpd.conf中來完成它。 With version 2.3.1 and above, WordPress itself redirects (permanent redirect) all non-canonical URL to the single canonical URL for the site.與版本2.3.1及以上,在WordPress本身重定向(永久重定向)的所有非正規的URL單一的典型網址為的網站。

The upside is that you don’t need to mess around with .htaccess or httpd.conf.好處是您不需要一塌糊塗左右。 htaccess的或httpd.conf中。 A slight mistake in either of them can bring down your site or mess it up completely.輕微的失誤,要么他們可以把您的網站或一塌糊塗,它完全。

The downside is that WordPress uses a PHP based approach which is potentially slower than .htaccess or httpd.conf approaches.壞處是, WordPress所使用的PHP為基礎的辦法,這是潛在的慢。 htaccess的或httpd.conf中的辦法。 Nevertheless it should be a boon for novice bloggers.不過,這應該是一個福音新手博客。