adding header/footers to all html pages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • whoreans
    Confirmed User
    • Jun 2001
    • 1407

    #1

    adding header/footers to all html pages

    adding header/footers to all html pages.. just like the free hosts.. but can ya do that with jsut .htaccess?
  • Amputate Your Head
    There can be only one
    • Aug 2001
    • 39075

    #2
    Best thing I've found for just such a thing, is to use a Library object. Then when you wanna change something in either one, just change it in the library, and all your pages will automatically be updated.

    ------------------
    SIG TOO BIG

    Comment

    • whoreans
      Confirmed User
      • Jun 2001
      • 1407

      #3
      thank you

      Comment

      • RK
        Confirmed User
        • Aug 2001
        • 868

        #4
        Originally posted by whoreans:
        adding header/footers to all html pages.. just like the free hosts.. but can ya do that with jsut .htaccess?

        Yes, there are Apache modules that can do that and they can be controlled from .htaccess.

        ------------------
        Pay-As-You-Go Hosting FREE Trial!
        Below $.90/GB Dedicated Hosting
        EnergyHosting - Energizing your business
        Does anyone look down here?

        Comment

        • Roberto
          Confirmed User
          • Oct 2001
          • 1459

          #5
          or do a sitewide source search/replace for [body] -> [body][headercode]
          and
          [/body] -> [footercode][/body]

          ][= ><

          [This message has been edited by Roberto (edited 11-17-2001).]
          i'm a legend in my spare time.

          Comment

          • Unfed
            Confirmed User
            • May 2001
            • 257

            #6
            try php, all you need to do is adding a single line like:

            <?php include("header.html"); ?>

            put this line up to your page(s) where you want your header appear...

            <?php include("footer.html"); ?>

            put this line up to your page(s) where you want your footer appear...

            if you're on a paid hosting i'm sure latest version of php's already installed. enjoy!

            damn i looove this php shit!



            ------------------
            • ProAdult - Brand New AVS with kick ass hosting
            • ProAdult - Guaranteed MONEY maker with kick ass FREE hosting ...

            Comment

            • Unfed
              Confirmed User
              • May 2001
              • 257

              #7
              hahaha, shit

              server executed the code i guess, they didn't appear...

              anyway, icq me if you want those lines @ 5306227



              ------------------
              • ProAdult - Brand New AVS with kick ass hosting
              • ProAdult - Guaranteed MONEY maker with kick ass FREE hosting ...

              Comment

              Working...