Forum Moderators: phranque
www.example.com/event.html?eventid=4
But i'm considering changing this to the unique identifier for the event so it would appear something like:
www.example.com/event.html?ui=44429629-AA9A-423F-AQAF-F50137F49FA3
I can't decide which is the best practice. Is having a long querystring like this going to affect the spidering of my site? Does having an event id make my database seem too transparent?
Having a shorter querystring must make the pages more user friendly, but is having users able to 'hack' the querystring good practice?
Any suggestions or advice are appreciated.
1. Easier to debug
2. SQL is much faster querying on primary keys instead of GUIDs
I don't see any downside to displaying database ids in querystrings for most websites. Heck, even eBay uses this method for its ItemNumbers!
I suppose it makes the address clearer if i use it in a circular email too.
Cheers.