SEO 的短 URL 或长 URL
我正在为一个网站实施 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以通过规范网址获取两者。例如,在 /Java.html 和 /book/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: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.
如果它分为两类怎么办?在这种情况下,我会说最好使用短 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.
尝试为网站内容选择合适的尺寸。例如,“书”这个词在书店的 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.