I need to parse PHP directives in files with an .html extension (I'm updating a legacy site and wish to avoid broken links). Lots of tips and solutions exist, none of which are working for me locally using MAMP Pro 3, latest version (3.2.1).
I set the PHP version to 5.4.39 Otherwise, all other MAMP settings are default (including loading fastCGI module).
AllowOverride, Order and Allow from are all checked.
I created an .htaccess file which apparently IS being read because other things (custom 404 page for example) work.
Suggestions I found via search and have tried which don't work include:
AddHandler php5-cgi .html .htm
and
AddHandler application/x-httpd-php .html
(Plus AddType variations of the above, which prompted the browser to download the document.)
My project lives in a subdirectory of the MAMP htdocs folder. The .htaccess file is in the root of the project subdirectory if that makes any difference. Mac OS 10.9.5 if that makes any difference.
Any thoughts on how to get this seemingly straightforward thing to work in MAMP? Thanks. Steve