httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick van Vliet <>
Subject Re: [users@httpd] Can PHP files load without extension?
Date Sun, 21 Mar 2004 21:31:42 GMT
(bottom posting)

> Date: Sun, 21 Mar 2004 12:27:23 -0600
> To:
> From: Rick van Vliet <>
> Subject: Can PHP files load without extension?
> Message-ID: <>
> Apache 2.048 PHP  4.3.4
> Is there a setting in apache 2.048 httpd.conf file that will allow a php 
> page to load, without needing to supply the extension?
> I have my DirectoryIndex set to take care of "index.php" automatically, 
> but I would like to be able to have a php file load, as though it were 
> an htm or html.
> I though I was able to do this with Apache 1.3x, and php 4.32, but I 
> cannot seem to find anything googling or at, where this is 
> very clear.
> Thanks,
> rick
> ------------------------------

>> Date: Sun, 21 Mar 2004 22:01:16 +0100
>> To:
>> From: Didier Peereboom Voller <>
>> Subject: Re: [users@httpd] Can PHP files load without extension?
>> Message-Id: <1079902876.30998.11.camel@localhost>
>> yes this is possible
>> AddType application/x-httpd-php Is the line where you tell apache that 
>> it should handle for instance
>> *.php as a php file. *.php3 *.phtml *.php4 are typical but it is really
>> up to you.
>> You can simply add any extension you want. Possibly even * if you are
>> adventurous.


Thanks, but it isn't really working the way I expect.
If I set up my pages to be some HTM, and some PHP, and I want to send a 
link to someone so
that I don't have to remember whether it's a php or html extension...and 
this file is not an index.* page...
Would I add *.htm *.html to the
"AddType application/x-httpd-php .php " line?

Or is this some kind of a ForceType arrangement?
(as I make these changes in the .conf file, I am restarting the server, in 
case you're wondering :)

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message