Micro.blog

philbowell
philbowell

Any web development people know why a htaccess rule to change to php 7 is causing the file to download and not execute?

philbowell.com
colinwalker
colinwalker

@philbowell What command are you using?

philbowell
philbowell

@colinwalker literally just got it to work then saw your reply. Pretty sure I'd tried it before but this seems to have worked:

AddHandler x-httpd-php7 .php AddType application/x-httpd-php7 .php

In reply to
colinwalker
colinwalker

@philbowell Ah cool, it can be host specific. On some I’ve only seen AddHandler needed, others only AddType. Glad you’ve got it working.