Brian Moon ([EMAIL PROTECTED]) 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.
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]