Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can an "SEO Friendly" url contain a unique ID?

I'd like to start using "SEO Friendly Urls" but the notion of generating and looking up large, unique text "ids" seems to be a significant performance challenge relative to simply looking up by an integer. Now, I know this isn't as "human friendly", but if I switched from

http://mysite.com/products/details?id=1000 

to

http://mysite.com/products/spacelysprokets/sproket/id 

I could still use the ID alone to quickly lookup the details, but the URL itself contains keywords that will display in that detail. Is that friendly enough for Google? I hope so as it seems a much easier process than generating something at the end that is both unique and meaningful.

Thanks!

James

like image 522
James White Avatar asked May 04 '09 15:05

James White


People also ask

What makes a URL SEO friendly?

URLs that are simple, easy to read, and include keywords that describe the content on a web page are SEO-friendly.

Should I use ID in URL?

The reason people are saying that {ID} in the URL is bad is due to the way search engine algorithms work. When a search term is located in the actual URL, it is weighted much more heavily than the content of the page, etc. For example: <!

What is the character limit of SEO friendly URL?

Browsers' URL length limits The appropriate page URL is 75 characters long. As for indexing documents with long URLs (over 75-120 characters), they are generally indexed quite well, although there may be difficulties in the ranking. Here you can check the maximum limits of URL length in different browsers.


1 Answers

Be careful with allowing a page to render using the same method as Stack overflow.

http://stackoverflow.com/questions/820493/random-text-can-cause-problems

Black hats can this to cause duplicate content penalty for long tail competitors (trust me).

Here are two things you can do to protect yourself from this.

  • HTTP 301 redirect any inbound display url that matches your ID but doesn't match the text to the correct text.

Example: http://stackoverflow.com/questions/820493/random-text-can-cause-problems 301 -> http://stackoverflow.com/questions/820493/can-an-seo-friendly-url-contain-a-unique-id

  • Use canonical URLs.

<link rel="canonical" href="http://stackoverflow.com/questions/820493/can-an-seo-friendly-url-contain-a-unique-id" />

like image 143
Julian Sutter Avatar answered Sep 19 '22 15:09

Julian Sutter