Welcome Guest, Not a member yet? Register   Sign In
URL Rewriting: Name instead of ID
#8

[eluser]mddd[/eluser]
Good solution. Some small things I thought of:

1. Why use a redirect? Why not have the page stay on its own url? It would be perfectly ok to do so. That way, name and id would be equal. Not having the name simply a redirect to the id. Think of bookmarking for instance. Wouldn't it be much nicer for the user to bookmark 'authors/john_doe' than 'authors/show/123' ? FAR more useful to keep the name in there! And better for SEO too, I would think.

2. If you use a REAL encoded string, including special characters, people won't be able to type it in. I mean, what user knows url encodings by heart? My guess is that it would be better to lose the accents and use 'regular people's writing'. authors/josé nuñez is a LITTLE BIT harder to read, let alone write, than authors/jose_nunez right? In the end, the whole point is to make urls more readable!


Messages In This Thread
URL Rewriting: Name instead of ID - by El Forum - 07-20-2010, 04:50 AM
URL Rewriting: Name instead of ID - by El Forum - 07-20-2010, 05:03 AM
URL Rewriting: Name instead of ID - by El Forum - 07-20-2010, 05:05 AM
URL Rewriting: Name instead of ID - by El Forum - 07-20-2010, 05:05 AM
URL Rewriting: Name instead of ID - by El Forum - 07-20-2010, 07:20 AM
URL Rewriting: Name instead of ID - by El Forum - 07-20-2010, 06:41 PM
URL Rewriting: Name instead of ID - by El Forum - 07-20-2010, 07:25 PM
URL Rewriting: Name instead of ID - by El Forum - 07-21-2010, 01:16 AM
URL Rewriting: Name instead of ID - by El Forum - 07-21-2010, 05:57 AM
URL Rewriting: Name instead of ID - by El Forum - 07-21-2010, 06:00 AM
URL Rewriting: Name instead of ID - by El Forum - 07-21-2010, 06:08 AM
URL Rewriting: Name instead of ID - by El Forum - 07-21-2010, 06:11 AM
URL Rewriting: Name instead of ID - by El Forum - 07-21-2010, 07:54 AM
URL Rewriting: Name instead of ID - by El Forum - 07-21-2010, 07:58 AM
URL Rewriting: Name instead of ID - by El Forum - 07-21-2010, 12:25 PM
URL Rewriting: Name instead of ID - by El Forum - 07-26-2010, 10:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB