Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uuid in url, is it friendly to google?

Tags:

url

uuid

seo

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

like image 898
Freewind Avatar asked Oct 19 '25 03:10

Freewind


1 Answers

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.

like image 167
Tony the Pony Avatar answered Oct 22 '25 05:10

Tony the Pony