David
David

Reputation: 3348

.htaccess: auto_append_file only working for PHP files, not for HTML files

I'm using the following code in my .htaccess file: php_value auto_append_file included_file.html

This is working as expected if I call https://www.example.com/file.php but it's not working if I call https://www.example.com/file.html.

It seems like auto_append_file is only working for PHP files and not for HTML files.

Is this an expected behavior or is there a way to fix this?

Upvotes: 0

Views: 160

Answers (1)

Nico Haase
Nico Haase

Reputation: 12127

As php_value is evaluated by PHP, and not by Apache itself, this looks pretty usual to me. You could resolve this by letting PHP also parse all files with the extension html

Upvotes: 2

Related Questions