Heres my suggestion on what could help make a killer digg-clone.
First look at the typical Digg URL
http://digg.com/science/The_Science_...adly_invisible look how long that is, and Mr. Matt Cutts (from Google) has blogged about how you shouldn't use _ as a seperator because - is a much better seperator in the search engine's eyes.
My advice is to have urls like http://pliggsite/category/url-friendly-title remove words like a,an,the,and,or,of,for and hyphonate the rest.
Also a cool URL mod would be to have http://category.pliggsite.com/url-friendly-title
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Where digg gets it wrong, URLs and Archives |
| |||
| An easy compromise
An easy compromise could be http://pliggsite.com/category/#/url-friendly-title whire # is the article id number |
| |||
|
I pretty much agree with 1 thing you said, changing the _ into -. I've read about it as well.. so yea..
|
| ||||
|
I definately agree with the "-". Google does prefer the hyphen vs underscore.
|
| ||||
|
Ok, this will be an easy enough fix. I'll release a version with these friendly URL's soon.
__________________ - Ash |
| |||
|
Try this ![]() //Remove common words $output = preg_replace( '/(-a-|-an-|-the-|-and-|-or-|-of-|-for-)/i', '-', $output ); l8r, Joe |
| |||
| Quote:
Code: /-(an?d?|f?o(r|f)|the)-/i Code: /\b(an?d?|f?o(r|f)|the)\b/i |
| |||
| Quote:
|
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |





Linear Mode
