用户个人资料的 URL?是斜杠后面的子域或文本吗?
我正在创建一个基于在线的系统,该系统具有所有用户的公共用户配置文件。
我想知道如何组织这些公共用户配置文件的 URL?对于 SEO 以及用户友好性来说,还有什么更好的呢?
{用户名}.mysystem.com
或
mysystem.com/{用户名}
甚至可能
mysystem.com/users/{用户名}
提前致谢!
I'm creating an online based system that has public user profiles for all users..
I'm wondering how to organize the URLs for these public user profiles? What could be better for the SEO and of course for the user friendliness?
{username}.mysystem.com
or
mysystem.com/{username}
or maybe even
mysystem.com/users/{username}
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
绝对不是用于 SEO 目的的子域。
我个人更喜欢最后一个选项
mysystem.com/users/{username}
,因为它在一定程度上与应用程序的其余部分分开。这当然要求 {username} 在数据库中始终是唯一的。如果不是(请参阅 StackOverflow 以及即使已被占用也可以拥有您喜欢的任何用户名的能力),那么您还需要在 url 字符串中添加唯一标识符
mysystem.com/users/{userID}/{ username}
最后,如果网站完全围绕用户(IE:博客网站),那么您可以从 url 字符串中删除
users
并仅使用{username}
再次提供“用户名”是唯一的mysystem.com/{username}
Definitely not a subdomain for SEO Purposes.
I personally prefer the last option
mysystem.com/users/{username}
as it gives a level of separation from the rest of the application.This of course requires that {username} is always unique in the database. If it is not (see StackOverflow and the ability to have whatever username you like even if it's taken), then you need to add a Unique Identifier in the url string as well
mysystem.com/users/{userID}/{username}
Lastly, if the site ENTIRELY revolves around the user (IE: a blogsite), then you can remove the
users
from the url string and just go with{username}
again providing "username" is uniquemysystem.com/{username}
SEO 的考虑因素之一是“如果用户的个人资料获得搜索流量,他们是否会获得经济利益?”
如果答案是肯定的,那么用户就有动力建立指向他们个人资料的链接。您无法控制他们创建的链接类型。因此,算法惩罚可能会应用于您的网站,因为一个坏蛋试图增加搜索流量。
如果你把他们的个人资料放在子域上,那么任何负面的SEO只会影响子域,而不会影响网站的测试。
One consideration for SEO is "do the users benefit financially if their profiles get search traffic?"
If the answer is yes, then users have an incentive to build links to their profiles. You won't have any control over the types of links they create. Consequently algorithmic penalties could be applied to your website because one bad egg is trying to increase search traffic.
If you put their profiles on sub domains, then any negative SEO will only affect the sub domain and not the test of the website.