[SEO] Meaningful slug for profile page, and other pages later on like job posts
Opened this issue · 4 comments
Now everyone's profile pages are with slug using the uuid, i.e. /profile/[uuid]
, which isn't a great thing for SEO
Reference: https://yoast.com/slug/
We may consider adding more meaningful things and keyword in the slug, simply can just use /profile/[username]
like Linkedin
Same thing goes to post detail page if we want to create a separate detail page for more detail
This should be done ASAP to keep all of our links stable, and better for SEO ranking
You've got a point, and I believe this will make the link more shareable.
Maybe we can use the username part of the email address by default. Then, at some time in the future, we can allow users to edit their custom urls in profile setting just like LinkedIn?
Agger
Better to ask user to input a username when register and make it permanent, otherwise the seo score of that link will be lost
e.g.
- original slug:
/profile/tommyttf
- user change username:
/profile/tommyttf0123
then:
/profile/tommyttf
-> 404 but may already got some seo score during 1, huge damage to our site as it become 404
/profile/tommyttf0123
-> a 'new' url to google, need to wait for google bot to crawl again
Although can set redirect and sth like <link rel="canonical" href="XXX">
, this require extra handling in server
So now we should first ask user to fix their username
Better to ask user to input a username when register and make it permanent, otherwise the seo score of that link will be lost
e.g.
- original slug:
/profile/tommyttf
- user change username:
/profile/tommyttf0123
then:
/profile/tommyttf
-> 404 but may already got some seo score during 1, huge damage to our site as it become 404
/profile/tommyttf0123
-> a 'new' url to google, need to wait for google bot to crawl againAlthough can set redirect and sth like
<link rel="canonical" href="XXX">
, this require extra handling in serverSo now we should first ask user to fix their username
Can do. Username is unique in db.