Concerning search engine optimization I wonder what the best practice is to write parameters in a url. Should I place parameter names? Does an id value has a negative effect on search engines?
Here are some options that come to mind:
/project/pid/171/name/my_funny_name/project/171/my_funny_name/project/my_funny_name
Good rule is less params is better. If you need numerical id, 2nd option is quite good, if you force
my_funny_namepart to be unique, you may rely only on this as id. However keep in mind, that if you change name, url will be broken.Also remember to avoid double names for same content, like
/project/171/my_funny_nameand/project/171/my_old_name. Try to use<link rel="canonical" href="http://example.com/project/171/my_funny_name">