Re: Adding URI Translation Handlers

From: Date: Fri, 22 Jun 2001 21:25:46 +0000
Subject: Re: Adding URI Translation Handlers
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-57698@lists.php.net to get a copy of this message
Brian Moon (brianm@dealnews.com) wrote: > I am still not clear on your problem with the rewriting. I don't see what > the number of files in the templates has to do with anything. > > Can you elaborate more on that. Maybe some examples of what the request > would be and how you would rewrite it and why. Consider, for example, sourceforge. http://sourceforge.net/projects/myproject/index.html http://sourceforge.net/projects/myproject/bug-list.html http://sourceforge.net/projects/myproject/bug-add.html There are zillions of "myproject"s, with new ones coming on at the rate of at least several per day. These are all pages which, in the URI -> filename translation step of Apache, need to get pointed at some canonical project template directory. Doing this with one rewrite, as you did with articles and pathinfo, doesn't seem sufficient, since there are in fact several files under each directory rather than just one. /articles/65902.html probably gets rewritten to /articles.php which has to go looking through pathinfo. Fine, it works. But I don't think pathinfo is up to the task above.

« previous php.dev (#57698) next »