将内容存储在平面文件中比数据库真的有助于更好的 google/yahoo/bing 搜索吗?
我在为我的个人网站选择 wiki 时刚刚看到几篇文章。 我很困惑,因为我正在为我的个人项目设置个人维基,我认为平面文件系统很好,甚至可以维护设计文档、设计决策和同行评论/反馈的修订。
但互联网给出的反应五花八门,其中大部分是不相关的信息。 任何人都可以解释一下选择吗? 如果有人可以分享他为这个个人/小型企业网站选择 wiki 的经验,那就太好了。
I just came across few articles, while selecting a wiki for my personal site. I am confused, as i am setting a personal wiki for my personal projects, i think a flat file system is good, even to maintain revisions of the design documents, design decisions, and comments/feedbacks from peers.
But the internet gives a mixed bag of responses, mostly irrelevant information. Can anyone please shed some light on the selection. It will be nice if some can share his experience for a wiki selection for this personal/small business site.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您询问更多有关搜索引擎优化 (SEO) 的问题,这与您在服务器中存储内容的方式没有太大关系。 无论是在静态 HTML 中还是作为数据库驱动的应用程序,搜索引擎仍然会通过从一个链接到另一个链接进行拖网来索引您的页面。
一些确实影响搜索引擎对您的网站建立索引的能力的因素:
驱动动态内容。 如果确定的话
甚至无法封锁信息
呈现在页面上,无需
调用 Javascript 的使用,它将
成为一个问题。 搜索引擎
通常不执行 JS
你的页面。 他们只是采取
内容按原样。
来代表不同类别的
数据。 多了一个
标签
搜索引擎的重视程度高于
标签。 基本上,你只需要
正确掌握 HTML
用于标记您的内容的元素。
认为有复杂的动态
URL 代表搜索问题
引擎。 不过,我见过一些
奇怪的内容管理系统
暴露几个不同的 URL
映射只是指向相同的
内容。 这是合乎逻辑的
搜索引擎认为这是一样的
内容作为单独的页面,可以
稀释你的排名。
还有其他因素。 我建议您查找“可访问的网络内容”作为您的 Google 搜索关键字。
至于平面文件与数据库驱动的内容,请考虑如何管理系统。 归根结底,这是您自己的劳动(或您的下属的劳动)。 就我而言,我当然不想花时间手动管理内容。 因此,一个方便的内容管理系统几乎是强制性的。 我知道有一些 Wiki 实现可以直接写入平面文件。 只要它的管理部分足够好,我相信它们就可以满足您的目的。
You're asking more about Search Engine Optimization (SEO), which has nothing much to do with how you store your content in the server. Whether in static HTML or as a DB-driven application, search engines will still index your pages by trawling from link to link.
Some factors that do affect search engines' ability to index your site:
drive dynamic content. If certain
blocks on information can't even be
rendered on the page without
invoking use of Javascript, it will
be a problem. Search engines
typically don't execute the JS on
your page. They just take the
content as-is.
to represent varying classes of
data. A
<h1>
tag is given moreemphasis by search engines than a
<p>
tag. Basically, you just needto have a proper grasp of what HTML
element to tag your content with.
think having complicated dynamic
URLs represent a problem for search
engines. However, I've seen some
weird content management systems
that expose several different URL
mappings just to point to the same
content. It would be logical that
the search engines deem this same
content as separate pages, which can
dilute your ranking.
There are other factors. I suggest you look up on "accessible web content" as your Google search key.
As for flat files vs DB-driven content, think about how you're going to manage the system. At the end of the day, it's your own labor (or your subordinates'). I, for one, sure don't want to spend my time managing content manually. So, a convenient content management system is pretty much mandatory. I know that there are a couple of Wiki implementations that write directly to flat files. As long as the management part of it is good enough, I'm sure they'd be fine for your purposes.