On 2005-12-10, Mark Stosberg <[EMAIL PROTECTED]> wrote:
> On 2005-12-08, Rhesa Rozendaal <[EMAIL PROTECTED]> wrote:
>>
>> Ok, now that you all have had time to play with this, please explain why this
>> is less difficult and unwieldy than mod_rewrite.
Here's another strong, real world example of what our own dispatching
system could do.
Drupal has cool URLs. They use a standard 4 line .htaccess/mod_rewrite
file, and then send everything through their own dispatcher, creating
URLS like "node/30", which handle most content pages.
Well, that's sort of cool, but not memorable. So here's the kicker--
Anywhere I add or update a node, I can choose a URL alias for it. Not
only will the dispatcher understand this URL but /all internal/ links
will immediately start using the preferred URL, as if the other never
existed.
If you Google for "gimp image slicing", a page I put with Drupal quickly
appeared on the first page of results. I think is in part due to the URL
being "gimp_image_slicing" instead of "node/28".
However, not every link to a page will be generated by the application.
I create my own links when I add new content by typing in a textarea,
outside of app-space. I love that I can link to simple names I can
remember, like "use" "share" and "blog/mark/matt_switches_to_linux"
(instead of "node/32")
It's not just "neat", it allows you to use a Drupal to manage your site
and have decent human friendly URLs with little effort, instead of a
structure that screams "Hey! I'm run by CMS with URLS only a robot could
remember!"
With a decent dispatcher as a foundation, it would be an easier task to
create a sub-class which first looks up aliases in a database table
before making a final dispatch decision.
>> Seriously.
Seriously. I don't think mod_rewrite could do that for us.
Mark
--
http://mark.stosberg.com/
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]