From: Shaun M. <sh...@ae...> - 2004-11-02 22:45:20
|
On 2 Nov 2004, at 18:22, Steven Levin wrote: > > Old links will still work, but code will have to be updated to generate > the new syntax. > That's the key. There needs to be a core function to generate a short url. I can't say I'm too thrilled with having lots of stubs around to pick up the short urls and calling one 'pagemaster.php' is a bit long also. ;-) Would it not be possible for index.php to convert a short url into a long one? eg. index.php?page=1 index.php?forum=1&thread=5 index.php?link=3 Each module would have to register a short url to long translation with the core. That would make mod_rewrite rules dead easy also if needed at all. I raised this in an RFE some time ago - http://sourceforge.net/tracker/index.php? func=detail&aid=857459&group_id=15539&atid=365539 The other alternative is the 'node' approach. Give every url a node number and hold a table mapping nodes to actual urls. I think that's how Drupal works. How this fits in with versioning and workflow may need investigating. Shaun aegis design - http://www.aegisdesign.co.uk |