3 ms·
here are (my) URL rules which have served me very well over the years. • URL-Rule 1: unique (1 URL == 1 resource, 1 resource == 1 URL) • URL-Rule 2: permanent
by franze 13y ago
here are (my) URL rules which have served me very well over the years.
• URL-Rule 1: unique (1 URL == 1 resource, 1 resource == 1 URL)
• URL-Rule 2: permanent (they do not change, no dependencies
to anything)
• URL-Rule 3: manageable (1 logic per site section, no
complicated exceptions, no exceptions)
• URL-Rule 4: easily scalable logic
• URL-Rule 5: short
• URL-Rule 6: with a targeted keyword phrase
one is more important than two to six combined, two is more important than three to six combined, and so on.
adding a "human readable text thingie" slug is number six. least important. meanwhile it makes 1 to 3 much harder, and runs against nr. 5.
so basically: don't do it, never. it complicates everything. if you can give a fulfil "human readable" and "short" and every other rule, do it. i.e.: www.example.com/a/contact is great. even www.example-shop.com/a/blue-coffee-maschine is great, but www.example.com/b/343435354-you-can-write-here-everything-you-want-and-i-will-trigger-a-redirect-if-its-wrong is a very very bad idea.