LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can Apache server automatically append HTML to all served pages? (https://www.linuxquestions.org/questions/linux-software-2/can-apache-server-automatically-append-html-to-all-served-pages-734057/)

yogi799 06-18-2009 10:31 PM

Can Apache server automatically append HTML to all served pages?
 
I want to put Google analytics code on all legacy pages on my server, most of them don't have a template so I was wondering if Apache can automatically append the code. Is this possible/easily done?

gilead 06-18-2009 10:39 PM

You could do it with server side includes, but that would require modifying the source pages (could be done with sed for example) which you may not want to do. The info here uses mod_layout which I haven't tried, but it sounds like it will do what you want.

yogi799 06-18-2009 11:55 PM

Quote:

Originally Posted by gilead (Post 3579108)
You could do it with server side includes, but that would require modifying the source pages (could be done with sed for example) which you may not want to do. The info here uses mod_layout which I haven't tried, but it sounds like it will do what you want.

Holy cracks, I think this mod will do just fine. Thanks!


All times are GMT -5. The time now is 01:48 AM.