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?

|
Embed
colinwalker
colinwalker

@philbowell What command are you using?

|
Embed
In reply to
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

|
Embed
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.

|
Embed