url中的uuid,对google友好吗?
我的数据库使用uuid作为主键,网址如下:
http://aaa.com/questions/a2f1c81a-b9a9-4a1d-804d-5324a8705976
对google等搜索引擎友好吗?我也可以使用自动增加的长整型作为主键,是不是更好?
网址为:
http://aaa.com/questions/1234212
My database uses uuid as primary keys, and the urls are like:
http://aaa.com/questions/a2f1c81a-b9a9-4a1d-804d-5324a8705976
Is it friendly to search engines like google? I can use autoincreased long integer as primary keys too, is it better?
The url will be:
http://aaa.com/questions/1234212
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是不可能肯定地回答的,因为谷歌对其排名算法保密(并经常更新),但我怀疑这是否重要。
但是,一般来说,如果您想提高搜索引擎排名,请在 URL 中包含关键字(就像 StackOverflow 那样)。您的 Web 应用程序可以只使用您的唯一标识符并忽略这些附加的 URL 元素。
This is impossible to answer with certainty as Google keeps it ranking algorithm secret (and updates them frequently), but I doubt it would matter either way.
However, generally speaking, if you want to improve search engine rankings, include keywords in your URLs (the way StackOverflow does). Your web application can just use your unique identifier and ignore these additional URL elements.