NYCPHP Meetup

NYPHP.org

[nycphp-talk] Apache 2.2, PHP 5.2 and .htaccess

Rob Marscher rmarscher at beaffinitive.com
Tue Oct 18 20:24:30 EDT 2011


On Oct 18, 2011, at 8:14 PM, Peter Sawczynec wrote:
> I am running a legacy website where all the .html files are being served as php by using some directives in an .htaccess file as follows:
>  
> DirectoryIndex index.html
> AddType application/x-httpd-php .htm .html
> AddHandler x-httpd-php  .htm .html
>  
> This website has now been migrated to a newer Apache 2.2 and PHP 5.2 web server environment and the above directives fail.
>  
> Does anyone know the directives that will work for me?

I'm not exactly sure why it's not working for you.  I use those directives on Apache 2.2.17 on my mac.

Does "apachectl configtest" give you any errors or warnings?  Where do you place those directives?  Top-level, virtual host, directory, htaccess?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20111018/f031d011/attachment.html>


More information about the talk mailing list