PDA

View Full Version : Custom page extension handlers?


weekend
10-14-04, 09:18 PM
I want all pages with a custom extension (e.g. file.foo) to be processed with a custom handler. (Just like every page with a "php" extension, the web server processes it with the php engine).

How do I tell the web server to handle all pages with 'foo' extension special? Can I handle these pages with a php program?

Thanks in advance

tbonekkt
10-14-04, 09:33 PM
Add this line to your .htaccess file:

AddHandler application/x-httpd-php .foo

weekend
10-15-04, 12:40 AM
Ill try it out - thanks