This is a discussion on PHP script gets called without extension within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I've seen a behavior on both my windows machine and a Linux server that php scripts get called ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I've seen a behavior on both my windows machine and a Linux server that php scripts get called even when called without a .php extension. for example, http://srlchem.com/company/about.php gets executed even when called as http://srlchem.com/company/about (you can actually verify by opening both those links) Is anyone aware of this behaviour ? This works for all PHP files and I've not put any configuration directive in place to make this happen. Anyone has any clue why this happens ? .. What default configuration can be making this happen ? thank you, regards, -Puneet Arora. |
|
|||
|
arorap wrote: > Hi, > > I've seen a behavior on both my windows machine and a Linux server that > > php scripts get called even when called without a .php extension. > > > for example, > http://srlchem.com/company/about.php > gets executed even when called as > http://srlchem.com/company/about > > > (you can actually verify by opening both those links) > > > Is anyone aware of this behaviour ? This works for all PHP files and > I've not put any configuration directive in place to make this happen. > Anyone has any clue why this happens ? .. What default configuration > can be making this happen ? > > > thank you, > > > regards, > -Puneet Arora. you have multiviews after an options directive somewhere in the relevant for that directory. multiviews allows apache to serve negotiated content, usually used for internationalisation say index.html.en index.html.fr, but works with any extension, once the file is internally requested any parsing directives that apply to it are then applied. |