Cool SEO Redirection Feature in WordPress 2.3.x冷靜徐重定向功能在WordPress 2.3.x
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.不過,這應該是一個福音新手博客。
Filed under提起下 Headline News頭條新聞 , , Open Source Software開放源碼軟件 , , PHP PHP的 , , Pro Blogging贊成Blogging , , Programming編程 , , SEO徐 , , Web網頁 , , Web 2.0 Web 2.0的 , , WordPress在WordPress | |
| |
RSS 2.0 2.0 | |
Trackback Trackback跟踪 this Article |此文章|
Email this Article電子郵件此文章
You may also like to read您也可以想讀 |





February 6th, 2008 at 12:41 pm 2008年2月6日在下午12時41分
Yes, canonical URLs are “built-in” to WordPress 2.3+, however, as you mention, the redirection is happening at the PHP level, which is slower and requires more server resources than if it were happening directly through Apache.是的,典型的網址是“固有” ,以在WordPress 2.3 + ,不過,正如你所提到的,重新導向正在發生的事情在PHP層上,這是慢,需要更多的服務器資源比如果它發生直接通過Apache的。 This built-in PHP redirection is perhaps good for users of WordPress 2.3 who don’t have access to httpd.conf/htaccess, but for users of older versions of WordPress, or for those of us who prefer to handle URL redirection via Apache, there is這個內置在PHP重定向,也許是良好的用戶WordPress的2.3誰沒有獲得httpd.conf中/ htaccess的,但對於老版本用戶對軟件WordPress的,或對我們這些喜歡誰處理URL重定向通過了Apache ,有 a much better solution for permalink canonicalization一個更美好的解決方案,為永久的規範化 . 。
February 7th, 2008 at 12:15 am 2008年2月7日在上午12時15分
If you’re interested, Mark Jaquith has a full writeup on the Canonical URL feature如果您有興趣,馬克賈魁斯有一個充分writeup對典型的URL功能 here這裡 . 。