My site is static HTML.
I have a PHP script that grabs data from referring URL which is then written into a cookie.
The script is called by using auto_prepend_file command from PHP.INI.
In order for PHP.INI to be called, I have to parse HTML as PHP by using AddHandler directive in .htaccess.
The problem is that in the scenario where shared hosting has PHP setup as CGI, I cannot turn off the trailing slash option or however is that called.
Normally I would use AcceptPathInfo Off directive which so far worked only on the shared servers where PHP is setup as Apache, while it would have no effect on those setup as CGI.
Two hosting companies (PHP as CGI) replied that they disabled AcceptPathInfo on a server level. I don't know much about this so I have no clue if this is true or they're just trying to gate me off their backs.
Now I wonder about ideas on how to trigger PHP.INI while not parsing HTML file as PHP - in other words - not to use AddHandler or AddType directives.
Would that be possible?
Thanks