RE: [PHP] php pages without .php extension on linux and windows
| From: | Ford, Mike [LSS] | Date: | Tue, 08 Jul 2003 11:16:29 +0000 |
| Subject: | RE: [PHP] php pages without .php extension on linux and windows | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-154335@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Heiko Mundle [mailto:hmundle1@gmx.net]
> Sent: 07 July 2003 11:08
>
> I try to use PHP and Apache on both Linux (SuSE 8.1) and Windows (2K).
>
> On Linux I can access the PHP scripts without adding the .php
> extension.
> E.g.
> http://<mydomain>/<myscript>?para1=TRUE
> for
> http://<mydomain>/<myscript>.php?para1=TRUE
> But on Windows it doesn't work (page not found - HTTP 404)
>
> How do I switch on 'adding .php' on windows? Does it run on
> windows too?
> What is responsible for that functionality, Apache/PHP?
> Which module or directive?
That's an Apache function -- and yes, it works on Windows because I've done
it ;).
I suggest you compare your httpd.conf (and .htaccess files if appropriate)
to help locate what's responsible for this -- first off, I'd be looking for
a ForceType or DefaultType directive, but there are also other ways this
could be done.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211