SEO 的短 URL 或长 URL

发布于 2024-08-22 17:12:14 字数 272 浏览 4 评论 0原文

我正在为一个网站实施 cs-cart。如果可能的话,哪一个更适合 SEO,并提供理由或参考。网站出售书籍、邮票、CD 等。

www.domain.com/book/Java.html (or) www.domain.com/book/programming/Java.html 

或者

www.domain.com/Java.html

有人说短网址很好。但说明该产品属于哪个类别不是很好吗?谢谢

I am implementing cs-cart for a web site. Which one is better for SEO if possible with a reason or reference. Site sells books stamps cds etc.

www.domain.com/book/Java.html (or) www.domain.com/book/programming/Java.html 

or

www.domain.com/Java.html

Some says short URLs are good. But isnt it good that stating which category the product it is in. Thanks

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

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

发布评论

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

评论(3

凑诗 2024-08-29 17:12:14

您可以通过规范网址获取两者。例如,在 /Java.html 和 /book/Java.html 的 中:

<link rel="canonical" href="/book/programming/Java.html" />

这样,Googlebot(和 Yahoo/MS 的蜘蛛)会将当前页面视为重复页面的规范链接并忽略它,没有欺骗内容带来的常见缺点。

长 URL 有利于描述性、清晰性和可扩展性。可搜索,而短 URL 很适合人们发送给朋友和任何流行的社交网络 - 很可能您两者都想要。

维护不同的 URL 和 URL不过,傻瓜会增加一些服务器工作。如果太费力,为了用户的利益,我会选择长格式。搜索能力。 “java.html”可能只是一些关于咖啡的随机页面,它需要上下文。

You can go for both, via canonical URLs. For example, in the <head> of both /Java.html and /book/Java.html:

<link rel="canonical" href="/book/programming/Java.html" />

With that, Googlebot (and Yahoo/MS' spiders) will see the current page as a duplicate of the canonical link and ignore it, without the usual demerits that come with dupe content.

Long URLs are good for being descriptive, clear, & searchable, while short URLs are nice for people to send around to friends and whatever social network du jour - chances are you want both.

Maintaining the different URLs & dupes will add some server work though. If it's too much effort, I'd go with the long form for the users' sake & search-ability. "java.html" could just be some random page about coffee, it needs context.

梦初启 2024-08-29 17:12:14

如果它分为两类怎么办?在这种情况下,我会说最好使用短 URL,因为您不想要重复的内容。

What if it fits into two categories? That would be the case where I say that it's better to go with a short URL because you don't want duplicate content.

苏佲洛 2024-08-29 17:12:14

尝试为网站内容选择合适的尺寸。例如,“书”这个词在书店的 URL 中是多余的。

Try to get the right size for the content of the site. For example the word "book" is redundant in a URL of a bookshop.

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