• 🎉 Big News: Circle City Servers is backing our CloudFest Americas coverage. Read more

Force Html?

siforek

New member
I've never done this and google doesn't want to tell me how so..

How would I go about forcing html(specifically javascript) onto any page located within a specific directory?
 
I figured it out, .htaccess:
Code:
AddHandler headered .htm
AddHandler headered .html
Action headered /path/file.php

file.php:
PHP:
<?php
echo "whatever you want";
readfile($_SERVER["PATH_TRANSLATED"]);
?>

This works great for html files, but I'm still looking for a similar solution for php files that use include for header, footer, etc.. Any help is appreciated. 🙂
 
wasent entirly sure what you where trying to do, but nice to see you found a soultion 🙂
 
Back
Top