How to include php file using .htaccess? I google it but i cant find a good tutorial or code.
Here is a php include code :
<?php require('footer.php'); ?>
This code is Prepend the file
php_value auto_prepend_file "/dir/path/utilities.php"
This code is Append file to bottom of the page
php_value auto_append_file "/dir/path/templates/footer.php"
I found this answer in http://samweby.blogspot.in/2013/07/prepend-and-append-htaccess-file.html link.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With