哪种 URL 重写方案更可取? 维基/博客风格?

发布于 2024-07-14 19:22:11 字数 561 浏览 11 评论 0原文

我正在编写一些 URL 重写软件,我想从多个角度了解哪种 URL 方案更可取:

  • 博客风格:my-chemistry-answer -- 为什么? -- (不优选,技术性)
  • Wiki 风格:My_Chemistry_Answer -- 为什么不呢? -- (最好,正式)

SEO: 有人说 Google 只分割由破折号分隔的单词,这就是为什么博客文章比 MediaWiki 设置获得更好的 SEO,这是真的吗?

可读性:最终取决于用户,当他们在搜索引擎结果页面/他们的书签/收藏夹存储中看到实际的“漂亮”URL 链接时。

我觉得维基风格更容易阅读,因为下划线显示为空格,因此不会妨碍阅读,而且它看起来更整洁、更正式,因此显得更权威。

结论?那么从“技术”角度来看哪个更好呢? (搜索引擎优化/索引),从“人类”的角度来看? (可读性/友好性/漂亮)

I'm writing some URL rewriting software, and I want to know which URL scheme is preferable from many points of view:

  • Blog style: my-chemistry-answer -- Why? -- (not preferable, technical)
  • Wiki style: My_Chemistry_Answer -- Why not? -- (preferable, formal)

SEO: Some say Google only splits words delimited by dashes which is why blog posts get better SEO than MediaWiki setups, is this true?

Readability: Finally its down to the user, when they see the actual "pretty" URL links in a search engine results page / their bookmarks/favorites store.

I'd feel the Wiki style is easier to read as the underscores appear as spaces, and therefore don't come in the way of grasp reading, and it also looks neater and more formal, and therefore appears more authoritative.

Conclusion? So which is better from the "technical" points of view? (SEO / Indexing), and from the "human" points of view? (readability / friendliness / prettiness)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

走走停停 2024-07-21 19:22:11

Google 工程师 Matt Cutts 表示,就 SEO 而言,“my-chemistry-answer”优于“my_chemistry_answer”,而“my_chemistry_answer”又优于“mychemistryanswer”。

请参阅他对 Google 汇问问题的回答,询问 Google 工程师:http://moderator.appspot.com/#9/e=c9&t=long-haired-dogs

至于人类的观点,我只能给出我的看法。 我倾向于更喜欢“我的化学答案”。 URL 通常不会以固定宽度的字体呈现,因此连字符的宽度比下划线更接近空格,所以对我来说它读起来更自然。 另外,作为一名程序员,您可能习惯于看到下划线,因为标识符中不允许使用连字符(因此它对您来说看起来更好),但大多数人不是程序员。

According to a Google engineer, Matt Cutts, for SEO purposes "my-chemistry-answer" is better than "my_chemistry_answer" which is better than "mychemistryanswer."

See his response to a question at Google Moderator, Ask a Google Engineer: http://moderator.appspot.com/#9/e=c9&t=long-haired-dogs

As for human point-of-view, I can only give my opinion. I tend to prefer "my-chemistry-answer". URLs usually aren't rendered in a fixed-width font, so the hyphen is closer in width to a space than the underscore, so to me it reads more naturally. Also, as a programmer you may be used to seeing underscores because hyphens aren't allowed in identifiers (and therefore it looks better to you), but most people aren't programmers.

请恋爱 2024-07-21 19:22:11

如果您正在编写通用的 url 重写软件,您甚至不应该问这个问题并支持两者。
当您为特定站点编写此 url 重写时,您应该以该站点的目的为指导。

希望这在某种程度上有所帮助......

If you're writing url-rewriting software for generic use you should not even be asking this question and support both.
When your writing this url-reweriting for a specific site you should be guided by the purpose of the site.

Hope this helps in some way...

淡忘如思 2024-07-21 19:22:11

首先,只有谷歌工程师才能确切地告诉您关于谷歌的真实情况:)

博客文章比 mediawiki 文章获得更好的搜索引擎优化是什么意思? 你能证明这一点吗? 如果是这样的话,那么为什么维基百科通常会出现在前十页中。

关于可读性,我同意下划线更适合阅读。

我的结论是,从技术角度来看,只要不是 /p=34 或类似的形式,样式并不重要。 任何风格都可以。 重要的是内容。 不要忘记内容为王

First of all only a google engineer can tell you for sure what is true about Google :)

And what do you mean that blog posts get better seo than mediawiki articles? Can you justify that? If that's the case, then why wikipedia usually appears in the top ten pages.

About readability, I agree that underscores are better for reading.

My conclusion is that from the technical point of view, as far as it is not in the form /p=34 or something like that, the style doesn't matter. Any style will do. What matter is the content. Don't forget that content is king

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文