I have a static site running on Heroku. Up to now I have had an empty index.php
alongside my index.html
, and with php_flag engine off
in .htaccess
, everything ran smoothly. Heroku detected a PHP app but didn't run PHP for anything; index.html
files took precedence.
Now with the switch to the new PHP system, I have been unable to get my static site working. It seems that the php_flag engine off
is causing an Internal Server Error, but if I remove that then the server can't find index.php
, so I get File Not Found. So I renamed all of my index.html
files to index.php
, but then the internal links in my site introduce a port for some reason (i.e. example.com/foo
becomes example.com:22481/foo
), so none of the links work.
What I'm trying to say is,
WHAT IS GOING ON PLEASE HELP