user1000456
user1000456

Reputation:

Can Apache prepend a header file to any request?

Is it possible to prepend a header file (for example header.php) to any request (for example page.html) without URL Rewriting | redirecting URLs with Apache's mod_rewrite | Running as PHP.

Upvotes: 2

Views: 194

Answers (1)

hjpotter92
hjpotter92

Reputation: 80649

Yes, you can achieve this by setting auto_prepend_file option in the php.ini (PHP configuration). This will only work when other PHP files are requested.

Upvotes: 0

Related Questions