Forum Moderators: coopster

Message Too Old, No Replies

htaccess question

         

DrDoc

4:54 am on Mar 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is it possible to specify a single file to be parsed by PHP, rather than a file type?

Like, instead of doing:
AddType application/x-httpd-php .html

is there something similar to:
AddFile application/x-httpd-php index.html

eaden

5:18 am on Mar 19, 2003 (gmt 0)

10+ Year Member



yes, in your .htaccess in the directory of the file:

<Files item>
ForceType application/x-httpd-php
</Files>

where "item" is the page you want parsed as php. I am using it so I can have urls like [my...] site/item/55

DrDoc

5:30 am on Mar 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks! Just tested it, and it works like a dream ;)