针对 SEO 和用户友好性的 URL 建议

发布于 2024-07-21 06:21:40 字数 1432 浏览 9 评论 0原文

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

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

发布评论

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

评论(4

能怎样 2024-07-28 06:21:40

我认为第一个 mysite.com//media//</code> 更好,并且可能有助于 SEO。 这也是 StackOverflow 本身使用的结构。

I think the first mysite.com/<username>/media/<mediaId>/<title> is better, and it may help with SEO. It's also the structure that StackOverflow itself uses.

看透却不说透 2024-07-28 06:21:40

从 SEO 角度来看:没有变化

从用户友好度角度来看:

mysite.com/<username>/media/<title>-<mediaId>

但这只是我的观点

From the SEO perspective: No change

From User Friendliness perspective:

mysite.com/<username>/media/<title>-<mediaId>

But it's just my opinion

溇涏 2024-07-28 06:21:40

我在具有不同 URL 结构的非常大的网站(数百万个以上页面)上搞砸了,例如:

  • 带有参数但没有关键字的 cgi-bin
  • 嵌套关键字(使用伪文件夹结构“/”)
  • 嵌套关键字(使用伪平面结构'-')
  • 关键字顺序为动态优先,动态最后等等

老实说,只要 URL 中包含关键字,您就不会注意到 SEO 方面有什么真正不同。

就可用性而言,这可能是主观的,并且没有经过验证的顺序,但由于大多数英语用户阅读 LTR(从左到右),那么您应该将关键字(标题)挂在末尾,否则可能会迷失周围的元(在域之后)。 这种方法还取决于 URL 长度,因为它会在书签、浏览器镶边、搜索结果等中被截断。

I've messed around on very large sites (million+ pages) with different URL structures, e.g.:

  • cgi-bin with parameters and no keywords
  • nested keywords (using a pseudo-folder structure '/')
  • nested keywords (using a pseudo-flat structure '-')
  • keyword ordering with dynamic first, and dynamic last etc

Honestly you're not going to notice anything really different in terms of SEO, as long as you do have the keyword in the URL.

In terms of usability, well that can be subjective and there's no proven order, but since most English users read LTR (left to right), then you should aim to have the keywords (title) hanging at the end otherwise it can get lost in the surrounding meta (after the domain). This approach also depends on URL length as it will get truncated in bookmarks, browser chrome, search results etc.

泛泛之交 2024-07-28 06:21:40

也许我错了,但我相信第二个更好。
从SEO的角度来看,ID比word还糟糕! 这意味着 - 更好 /,因为将这些 ID 放在 URL 的尾部比将其放在靠近头部的位置更好!

再说一遍:我自己的看法,我不确定!

Maybe I am wrong, yet I believe the second one is better.
From the SEO perspective, ID is worse than word! That means - is better /, as put those ID in the tail of URL is better than put it close to the head!

Repeat again: My own opinion, I am not sure!

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