WordPress:Search Engine Optimization for Wordpress

来自站长百科
Seadragon530讨论 | 贡献2008年4月22日 (二) 17:17的版本
跳转至: 导航、​ 搜索

WordPress, straight out of the box, comes ready to embrace search engines. Its features and functions guide a search engine through the posts, pages, and categories to help the search engine crawl your site and gather the information it needs to include your site within its database.

WordPress,从约束中跳出来,开始结合了搜索引擎。它的特色和功能通过文章,页面和分类指引的搜索引擎,帮助搜索引擎搜索整个站点搜集它所需要的信息,把站点收进它的数据库。

WordPress comes with several built in search optimization tools, including the ability to use .htaccess to create apparently static URLs called permalinks, blogrolling, and pinging. There are also a number of third party plugins and hacks which can be used for search engine optimization (SEO).

WordPress自带几种搜索优化工具,包括使用.htaccess建立几种静态的URLs,叫做permalinks, blogrolling, and pinging. 同样也有很多第三方插件 和 hacks,可以用来优化搜索引擎 (SEO).

However, once you start using various WordPress Themes and customizing WordPress to meet your own needs, you may break some of those useful search engine friendly features. To maintain your WordPress site's optimal friendliness towards search engine spiders and crawlers, here are a few tips:

尽管如此,一旦你使用了多种WordPress 主题自定义 WordPress来达到你的要求,你就可能破坏了一些有用的搜索引擎的友好的功能。为了维持你的WordPress站点对于搜索引擎的最优化,下边是几点小建议:

Good, Clean Code
Make sure your site's code validates. Errors in your code may prevent a search engine from moving through the site successfully.
好的, 简洁的代码
确定你的站点代码有效,代码中的错误可能会阻止搜索引擎在全站内有效的搜索。
Content Talks
Search engines can't "see" a site. They can only "read" a site. Pretty does not talk to a search engine. What "talks" to a search engine are the words, the content, the material in your site that explains, shares, informs, educates, and babbles. Make sure you have quality word content for a search engine to examine and compare with all the parts and pieces to give you a good "score".
内容讨论
搜索引擎无法"看"一个站点。它们只是"读"。漂亮对于搜索引擎来说没有用,和搜索引擎"讨论"的是词,内容,你的站点上的解释,共享,通告,训练和一些其他言语。确定你有合格的给搜索引擎用来检查和与所有的其他内容进行比较,来给出一个好的"分数"。
Write Your Content with Searchers in Mind
How do you find information on the Internet? If you are writing something that you want to be "found" on the Internet, think about the words and phrases someone would use to find your information. Use them more than once as you write, but not in every sentence. Learn how search engines scan your content, evaluate it, and categorize it so you can help yourself get in good favor with search engines.
撰写目录时考虑其他搜索者可能用到的词汇
如何在网路上找信息?如果你正在写一些你希望在网路上可以被别人"找到"的东西,考虑一下人们可能会用来搜索的词汇。写作的时候多次使用这些词汇,但是不要在每个句子都用。学习搜索引擎如何查找你的内容,估计一下,然后分类,这样你就会帮助自己得到搜索引擎的青睐。
Content First
A search engine enters your site and, for the most part, ignores the styles and WordPress:CSS. It just plows through the site gathering content and information. Most WordPress Themes are designed with the content as close to the top of the unstyled page as possible, keeping sidebars and footers towards the bottom. Few search engines scan more than the first third of the page before moving on. Make sure your Theme puts the content near the top.
目录优先
搜索引擎进入你的站点的大部分,忽略样式和CSS。它只是经过整个站点收集内容和信息。大多数WordPress主题都是设计成让内容尽可能接近顶部,让边栏和页脚尽可能接近底部。很少有搜索引擎查找多过于页面前三分之一的内容的。确定你的主题把内容放在接近顶部的地方。
Keywords, Links, and Titles Meet Content
Search engines do not evaluate your site on how pretty it is, but they do evaluate the words and put them through a sifter, giving credit to certain words and combinations of words. Words found within your meta tag keywords listings and within your document are compared to words found within your links and titles. The more that match, the better your "score."
关键词, 链接和标题要满足目录
搜索引擎不会估计你的站点有多漂亮,但是它们会估计词语,把词通过筛选得到信任的特定词或者词组。在你的 meta 标签关键词列表和文档中找到的词会和链接和标题中找到的词进行比较,越合适,你的"得分"就越高。
Content in Links and Images
Your site may not have much text, mostly photographs and links, but you have places in which to add textual content. Search engines look for alt and title in link and image tags. While these have a bigger purpose of making your site more accessible, having good descriptions and words in these attributes helps provide more content for search engines to digest.
链接和图片中的目录
你的站点可能并没有太多的文字,大多数都是图片和链接,但是你也有地方加入文字的内容。搜索引擎会在链接和图片标签中查找alttitle.当然这有一个更大的目的就是让你的网站更具有易用性,但在这些属性中拥有好的描述和词语可以帮助你提供更多的内容给搜索引擎。
Link Popularity
It is not how good your site is, it is how good the sites are that link to you. This still holds weight with search engine favoritism. It's about who links to you. Blogrolls, pingbacks, and trackbacks are all built into WordPress. These help you link to other people, which gives them credit, but it also helps them link to you, connecting the "links." The number of incoming links your site has that have been recognized by Google can be checked by typing link:www.yoursite.com into Google (other search engines have similar functions). Other ways to generate incomming links to your site include:
  • Add your site's url to your signature on forum posts on other sites.
  • Submit your site to directories (see below).
  • Note: Leaving comments on blogs will not help with this, since all modern blogging tools use the rel="nofollow" attribute. Don't be a comment spammer.
链接的声望
这不是说你的站点有多好,而是你的链接站点有多好。这是搜索引擎非常看重的一部分。这是关于谁链接到你这里了。Blogrolls, pingbacks, 还有trackbacks 都是内建在WordPress中的. 这些帮助你链接其他人,给它们信任,同样也帮助他们链接到你的站点,连接这些"链接."这些站点上引进的被Google验证过的链接可以通过Google (其他搜索引擎也有类似功能) 中输入link:www.yoursite.com来查看。其他生成引入链接的方法包括:
  • 把你的站点的链接加入到其他论坛帖子签名。
  • 把你的站点提交到姓名地址录 (如下).
  • 注意: 在blog中留下评论对此没有什么帮助, 因为所有现代blog工具使用 rel="nofollow" 属性. 不要成为一个 comment spammer.
Good Navigation Links
A search engine crawls through your site, moving from page to page. Good navigational links to the categories, archives, and various pages on your site will invite a search engine to move gracefully from one page to another, following the connecting links and visiting most of your site.
好的导航链接
一个搜索引擎搜索整个站点,从一个页面移动到另一个页面。分类,文档和多种页面的好的导航链接 会让搜索引擎顺利的在各个页面之间搜索,根据链接访问站点。

Search Engine Site Submissions

There are many resources that will "help" you submit your site to search engines. Some are free, some for a fee. Or you can manually submit your site to search engines yourself. Whatever method you choose to use, once your site has been checked for errors and is ready to go, search engines will welcome your WordPress site.

搜索引擎提交

有很多资源可以"帮助"你提交你的站点到搜索引擎。一些是免费的,一些是收费的。或者你可以自己手动提交你的网站到搜索引擎。不论你选择什么方法,一旦你的站点被checked for errors 并准备好, 搜索引擎将收录你的WordPress站点。

Here are some tips for successful site submissions:

  • Make sure you have content for search engines to scan. In general, have more than 10 posts on your site to give the search engines something to examine and evaluate.
  • Do not submit your site to the same search engine more than once a month or longer, depending upon their criteria, not your anxiousness to be listed.
  • Have ready to type, or copy and paste, a description of your site that is less than 200 words long, the title of the site, and the categories your site may belong to in a search engine directory.
  • Have a list of your website's various "addresses/URLs" ready. You can submit your root directory as well as specific categories and feeds to search engines, expanding your search engine coverage.
  • Keep a list of the various search engines and directories you submit to so you do not accidentally resubmit too soon, and you can keep track of how they include you among their pages and results.

这里是关于成功提交的站点一些小提示:

  • 确定你有一些搜索引擎可以查找的目录. 通常,多于10篇文章的站点才可以被搜索引擎查询到.
  • 一个月或者更长时间内不要向相同的引擎重复提交站点,这取决于他们的标准而不是你渴望被选入列表.
  • 准备好输入或者是复制粘贴一段你的站点的少于200词的描述,站点的标题和站点的分类就可能被搜索引擎收录。
  • 准备好一个你的站点的多种"地址/链接"的列表. 你可以提交你的根目录特定分类和feed到搜索引擎, 扩大你的搜索引擎覆盖面.
  • 保留你提交过的多种搜索引擎和地址目,这样你就不会出现重复提交的错误。而且你可以明白它们是如何把你包括进它们的页面和结果中的。

Directory Sites 姓名地址录站点

It is also useful for traffic generation and search optimization purposes to submit your site to directories. Both comprehensive directory sites and those specific to the subject or localisation of your site can be used.

通过交换生成和搜索优化目标来提交你的站点到目录也是很有用的。复杂的目录网站和那些主题细节或者局部化网站都可以使用。

DMOZ.org this is the most important directory - it's content is licensed in an open fashion allowing it to be syndicated through out the web -- its content is also used directly in some fashion by almost all of the major search engines.

DMOZ.org这是最重要的目录 – 它的内容是经过授权的,允许通过网路散发的。-- 它的内容同样被几乎所有的主要搜索引擎所直接使用。

Search Engine Optimization Resources

While WordPress comes ready for search engines, the following are more resources and information you may want to know about preparing and maintaining your site for search engines' robots and crawlers.

搜索引擎优化资源

当WordPress准备好迎接搜索引擎时,下边是一些你可能想知道为搜索引擎准备和维护你的站点更多的资源和信息。

Meta Tags

Meta Tags contain information that describes your site's purpose, description, and keywords used within your site. The meta tags are stored within the head of your header.php template file. By default, they are not included in WordPress, but you can manually include them and the article on WordPress:Meta Tags in WordPress takes you through the process of adding meta tags to your WordPress site.

Meta 标签

Meta 标签 包括描述你的站点内的网站目的,描写和关键词的信息。Meta标签储存再header.php模板文件的head中。默认时,它们并不被包括在WordPress中, 但是你可以手动实现这一点,关于 WordPress中的meta标签的文章可以带领你熟悉添加meta标签到WordPress站点的过程。

The WordPress custom fields option can also be used to include keywords and descriptions for posts and WordPress:Pages. There are also several WordPress Plugins that can also help you to add meta tags and keyword descriptions to your site found within the Official WordPress Plugin Directory.

WordPress 自定义范围操作可以用来把 文章页面 的关键词和描述包括进来。有几个WordPress 插件同样也可以帮助你添加meta标签和关键词描述到站点上,你可以从官方WordPress 插件目录找到相关内容。

Robots.txt Optimization

Search Engines read a yourserver.com/robots.txt file to get information on what they should and shouldn't be looking for, and where.

Robots.txt 优化

搜索引擎读取一个yourserver.com/robots.txt 文件来获得关于它们是否应该被查找和到哪查找的信息。

Specifying where search engines should look for content in high-quality directories or files you can increase the ranking of your site, and is recommended by Google and all the search engines.

指定搜索引擎在高级目录中到哪里查找内容,或者可以扩大站点范围的文件,还有受Google 和其他搜索引擎推荐的东西。

An example WordPress robots.txt file: 例如 WordPress robots.txt 文件:

User-agent: *
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /trackback
Disallow: /feed
Disallow: /comments
Disallow: /category/*/*
Disallow: */trackback
Disallow: */feed
Disallow: */comments
Disallow: /*?*
Disallow: /*?
Allow: /wp-content/uploads

# Google Image
User-agent: Googlebot-Image
Disallow:
Allow: /*

# Google AdSense
User-agent: Mediapartners-Google*
Disallow:
Allow: /*

# Internet Archiver Wayback Machine
User-agent: ia_archiver
Disallow: /

# digg mirror
User-agent: duggmirror
Disallow: /

Sitemap: http://www.askapache.com/sitemap.xml

See also:

参见:

Feed Submissions

WordPress comes built-in with various feeds, allowing your site to be viewed by various feed readers. Many search engines are now accepting feed submissions, and there are many site which specialize in directories of feeds and feed services.

提交Feed

WordPress内建了很多feed,允许你的站点被feed阅读器查看。很多搜索引擎现在接受提交feed,有很多网站擅长于feed目录和feed服务。

To submit your site's feeds, you need to know the link to the various feeds your site provides. The article WordPress:WordPress Feeds lists the various links of the feeds that come built into WordPress.

想提交你的站点的feed,你需要知道你站点提供的feed的链接。feed这篇文章列出了多种内建在WordPress 中的feed链接。

For information on customizing these links, see the article on WordPress:Customizing Feeds.

要想知道自定义这些链接的信息,查看自定义feed.

Technorati Tags

Technorati is a "real-time search engine that keeps track of what is going on in the blogosphere — the world of weblogs." According to the site, "Technorati tracks the number of links, and the perceived relevance of blogs, as well as the real-time nature of blogging. Because Technorati automatically receives notification from weblogs as soon as they are updated, it can track the thousands of updates per hour that occur in the blogosphere, and monitor the communities (who's linking to whom) underlying these conversations."

Technorati 标签

Technorati是一种 "实时搜索引擎,明白blogosphere— webblog世界正在进行着什么." 根据网站, "Technorati跟踪链接的数量,了解blog的实用性,还有blog的实时功能。因为wenblog一更新,Technorati自动的接收来自weblog的通知, 它每小时可以跟踪blog世界中成千上万的更新,还监视着会话之下的交流(谁和谁正在链接)."

Technorati tags are used to categorize the different topics and information used by blogs. Technorati uses WordPress categories as tags automatically. You can add more tags by adding a rel="tag" to any link on your site. For example:

<a href="http://wordpress.org/" rel="tag">WordPress</a>
<a href="http://codex.wordpress.org/" rel="tag">Codex</a>

Technorati 标签 用来分类不同的话题和blog使用的信息。 Technorati自动使用WordPress分类作为标签。你可以通过添加 rel="tag" 到你站点上的任何链接来加入更多标签 ,例如:

<a href="http://wordpress.org/" rel="tag">WordPress</a>
<a href="http://codex.wordpress.org/" rel="tag">Codex</a>

There are also several WordPress plugins for maximizing Technorati tags on the Plugins - Technorati list.

同样还有好几种WordPress插件可以用来在Plugins - Technorati列表中最大化Technorati 标签。

Note: In WordPress v1.5.x, Technorati will automatically recognize your category names as tags. For more info, see: WordPress Categories, Technorati Tags and Search Engine Optimisation

注意: 在 WordPress v1.5.x版本中, Technorati 会自动的向标签一样识别你的分类名字。参见:WordPress 分类, Technorati 标签和搜索引擎优化

Note: For optimal Technorati listing, you should include the Atom feed in the header of your theme. For this you may use the following code, which you can add somewhere between the <head> and </head> tags:

注意: 为了得到最佳的Technorati 列表, 你应该把Atom feed 包含在主题页眉中。你可以使用如下代码,你可以加在<head></head> 标签之间:

<link rel="alternate" type="application/atom+xml" 
title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />

Without adding the Atom feed to your header, your posts in Technorati will most likely be displayed wrongly. Which can result in the post content on Technorati duplicating the post title and listing other (meta) information, which is displayed between the post title and the real post content on your weblog.

如果没有加Atom feed到你的页眉,Technorati中你的文章很可能被错误的显示。这会导致Technorati的文章目录重复文章标题还会列出别的(meta)信息,显示在你的blog文章标题和真正的文章目录之间。

Permalinks

Permalinks are enhancements to your existing URLs which can improve search engine optimization by presenting your post, page, and archive URLs as something like http://example.com/2003/05/23/my-cheese-sandwich/ rather than http://example.com/index.php?p=423. See WordPress:Using Permalinks for more information.

Permalinks

Permalinks是作为你现有的URL的补充,可以通过显示在文章,页面和文档URL上如http://example.com/2003/05/23/my-cheese-sandwich/而不是http://example.com/index.php?p=423以改善搜索引擎优化。参见 使用Permalinks

As search engines use links and the title as part of their information gathering, links to posts and articles within your site gain importance with Permalinks.

因为搜索引擎使用链接和title作为它们信息采集的一部分,链接到你站点内带有Permalinks的帖子和文档显得更重要了。

See also:

参见:

As an added bonus, enable the Permalink Redirect plugin. This plugin "replies a 301 permanent redirect, if request URI is different from entry’s (or archive’s) permalink. It is used to ensure that there is only one URL associated with each blog entry."

作为附加的奖励,允许Permalink重定向插件. 这个插件"回复一个301永久重定向,如果要求URI与登陆口的permalink不同的话(或者是文档的). 它同样用来保证每个blog入口只有唯一的URL."

Sitemaps

A sitemap or "site map" is a single page listing of all the posts on your website. It is intended for your visitors to get a good overview on what your site is about and to find a blog post quickly but it also has great benefits in the search engines as a good link is always pointing to all your blog posts. By having a link to your sitemap on all your sites pages both visitors and search engines will easily get to it and find all your posts.

Here is a tutorial with three different examples of sitemaps with demos and how to set them up:

网站地图

网站地图 是一个单独的页面,列出了网站上所有的文章。它致力于给你的访问者提供一个关于你的站点是关于什么的好的总览,还有可以快速的找到某个文章,它同时在搜索引擎上作为一个好的链接,总是指向你所有的blog文章,也有很大的好处。通过在网站地图上的链接,在所有页面上的访问者和搜索引擎都很容易的进入和找到所有的文章。

Here is a tutorial with three different examples of sitemaps with demos and how to set them up:

这里是三个不同的网站地图例子的演示版和如何建立它们的说明:

Google Sitemaps

As of June 2005, Google is now accepting sitemaps of your site as part of their website submissions. Google needs to have this sitemap formatted in a special way using XML. You can find more information about Google's Sitemap Submissions from Google, and the discussion on the WordPress Forum about WordPress and Google Site maps.

Google 网站地图

在 2005年六月, Google接受了 网站地图作为它们的站点提交。Google需要使用XML的一个特殊方法来让网站地图有一个格式。你可以从Google找到更多关于 Google的网站地图提交 的信息,和 WordPress 论坛上关于 WordPress 和 Google 网站地图 的讨论。

Some utilities have been created to help the WordPress user to create a Google site map of their site for submission to Google. For more information on these and Google sitemaps:

一些效用已经建立起来帮助WordPress用户建立Google网站地图。查看更多相关信息:

Link Relationships

There is some debate over whether listing the link relations actually effect search engine ranking however it is simple to implement.

连接关系

有一些关于是否列出链接关系实际影响搜索引擎队列的争论,尽管它很容易实现。

More Resources and Tutorials

There is a lot to learn about search engine optimization and site submission. Here are just a few sites to help you learn more about how this works:

更多资源和指导

有很多有关搜索引擎优化和网站提交的东西要学习,这里是一些网站,可以帮助你学习更多关于这是如何工作知识:

Translations

If you have translated this article or have some similar one on your blog post a link here. Please mark Full Translated articles with (t) and similar ones with (s).

翻译

如果你已经把本文翻译过或者是你的blog上有一些相似的内容,在此发一个链接。请把全部翻译过的文章标记为(t),类似文章标记为(s).