I’ve changed the htacces a per your indications, and the same php message was printed. ?undefined constant’ (screenshot attached).
Again I’ve done a furtehr test. Now I’ve copied your script followed by an ‘exit;’ instruction above line 94 of the index.php file, where I’ve seen you’re checking the content of this constant. This time it printed:
Hope it helps. Thanks.