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这里 . 。