|
Posted by Andy Hassall on 10/19/66 11:59
On 29 Sep 2006 14:39:10 -0700, "Benjamin" <musiccomposition@gmail.com> wrote:
>Hi, I'm running PHP as an Apache module. I've always wondered how you
>set Apache up to parse a file as PHP without a file extension. Do you
>use the AddType directive?
Some possibilities:
MultiViews - Apache picks an appropriate file based on the start of the
filename. You can have other types of files, e.g. images, in the same
directories, although there's some overhead to the way Apache picks files.
ForceType - force all files in a directory to be run as PHP. Pretty simple,
but don't put any other files in the same directory.
RewriteRule - mod_rewrite can do all sorts of transformations from URLs to
files, adding a .php extension would be a trivial rule.
The alt.apache.configuration group should be able to give more detail.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|