Results 1 to 6 of 6
  1. #1
    Join Date
    May 2008
    Posts
    45

    Apache has a way to insert some html code below <body> to every webpage ?

    How to modify add some html code (such as banner, header, footer) to every webpage? without modify original files.


    Under <body> or above </html> tags.

    Something like search and replace.

  2. #2
    Join Date
    Oct 2003
    Posts
    9,264
    mod_layout

  3. #3
    Using Mod_Layout...

    <VirtualHost website:80>
    LayoutHeader /usr/local/apache/htdocs/header.html
    </VirtualHost>

    and

    <VirtualHost website:80>
    LayoutFooter /usr/local/apache/htdocs/footer.html
    </VirtualHost>

  4. #4
    Join Date
    Apr 2008
    Posts
    444
    Check on sed command
    WebbyCart.com - Pushing Onwards
    Server Management | Outsourced Hosting Support | Remote / Offsite Rsync Backup | Fully Managed Servers & Cloud VPS
    sales@webbycart.com

  5. #5
    Join Date
    May 2008
    Posts
    45
    Cool! thankz.

    Make life easiest.

  6. #6
    Join Date
    Apr 2002
    Location
    Auckland - New Zealand
    Posts
    1,575
    You can also use mod_ext_filter to do this as well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •