看了一些wordpress SEO的资料,最后把文章永久链接的格式改成了/blog%year%%monthnum%%day%/%postname%.html

这是个折衷方案,兼顾几方面:

  • postname做文章题目,体现文章内容,有利于搜索引擎识别
  • 包含年月日段,避免url重复。如果直接用/%postname%.html,随着积累题目重复的可能性就越来越大。
  • 包括url中分类段,对SEO有帮助,但wordpress是将文章的全部分类都列出来,可能会使url很长。所以放弃了。

还有一点,我曾经把永久链接格式写成 /blog/%year%%monthnum%%day%/%postname%.html。没有报任何错误,但所有的文章页都是404错误。去掉blog一段就正常了。似乎是wordpress不支持在永久链接格式中写单纯的常量。没有多试,存疑。

因为永久链接是SEO的基础,一旦确定就不要改变了。所以,还是想清楚了再动手,改后多试试链接是否有效。

本文来自http://jijian91.com  原文http://jijian91.com/blog20070707/wordpress-permalink.html

Google

1条评论

  1. ok

Post comment

comment has COPYRIGHT too!

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
URIs must be fully qualified (eg: http://www.domainname.com) and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.