I want to offer some hosting to a select customer group. In return they will be required to have a link to one of my websites. Is there a way to force this? Maybe a required include in the header of their main page?
Hi, You could do this with little tweaking in .htaccess Let me put it in different files here .htaccess AddHandler headered .htm AddHandler headered .html Action headered /header/header.php Code (markup): header.php <?php $header = "header.html"; $file = $_SERVER["PATH_TRANSLATED"]; readfile($header); readfile($file); readfile($footer); ?> Code (markup): header.html <b>Your header.</b> <hr> Code (markup): This one was used by one of my friend, and shoot any doubts. Regards Ciril
That looks like a good tip, but where do you place this .htaccess file? Do you have to copy it into every clients home directory?
In IIS (windows servers..), you have the option to add a header via the IIS Administration tool. Good explanation for apache, sreyas!
Yes Jesus Christ I forgot to update about the IIS part. In IIS its much easier. But you need to get direct access to IIS that mean you nead dedicated server. If you have access then right click on the ' websites'-> Documents tab in that second section, enable document footer and point the page thats all its done. Cheers