Forum Moderators: phranque
I'm trying to use htaccess and forcetype to create "friendly" urls. I have a file named "test" and the htaccess file has this in it:
<FilesMatch test>
ForceType application/x-httpd-php
</FilesMatch> When I upload this to my (real) webserver, it works exactly as expected. However locally it prompts me to download the file. I've tried a few things, but I really don't even know where to look.
Any hints?
Try taking another look through the mod_mime documentation and see if that sheds any light on the problem.
Jim
For future reference, apache wasn't configured to use php on files with application/x-httpd-php as their mimetype.
To fix this, I added this line to httpd.conf:
Action application/x-httpd-php /php/php.exe
This tells apache what to do with files that have that mimetype.
Thanks again!