NYCPHP Meetup

NYPHP.org

[nycphp-talk] not including '.php' in URI

Chris Shiflett shiflett at php.net
Wed Mar 22 12:31:01 EST 2006


Ajai Khattri wrote:
> Under the traditional setup, Apache knows a file needs to be
> passed to mod_php because its has been told that they are
> denoted by a .php extension. If you take that away then you,
> in effect, are telling Apache to assume *all* files are PHP
> files.

That's quite a leap. :-)

I don't use file extensions in my URLs out of personal preference, and I 
certainly don't tell Apache to treat all files as PHP.

John mentioned a few different ways to do this. You should read his email.

Chris



More information about the talk mailing list