Portal Home > Knowledgebase > Articles Database > Adding headers/footers server-wide


Adding headers/footers server-wide




Posted by sandydpd, 07-15-2013, 12:45 PM
I am currently serving a number of websites through vhosts on a apache2 server. Is there some way to add content to the or of all content? (there are hundreds of pages with different owners, .etc .etc) I currently run a personal Piwik tracker for users to monitor user views, and the locations that they are viewing from.

Posted by BestServerSupport, 07-15-2013, 01:00 PM
You can append or prepend files by setting a PHP ini value in .htaccess php_value auto_prepend_file "full_path_to_the_include_directory/prepend.php" php_value auto_append_file "full_path_to_the_file_containing_your_analytics_code" It'd be better to set them manually in php.ini http://php.net/manual/en/ini.core.php

Posted by khunj, 07-16-2013, 12:38 AM
For Apache server, you can have a look at mod_layout and/or mod_substitute modules.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
SSL Issues (Views: 687)


Language: