htaccess gurus?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snowball179
    Confirmed User
    • Dec 2002
    • 261

    #1

    htaccess gurus?

    I need to add an header/footer to all my *.shtml pages on a given directory.

    I know that I asked this question before, but the webmaster that reoplied me sent me to this page: http://www.evolt.org/article/htaccess/18/226/

    I tried their codes, and it doesn't seem to work. In fact, it makes all the webpages impossible to find.

    So I am asking if anyone has another htaccess code to do it?

    Thanks!
  • juicylinks
    So Fucking Banned
    • Apr 2001
    • 122992

    #2
    Options Includes Bukkake
    AddHandler facial teabag
    DirectoryIndex index.html index.htm index.cgi
    AddType text/x-server-parsed-bukkakei



    That should work

    Comment

    • snowball179
      Confirmed User
      • Dec 2002
      • 261

      #3
      what's the header and footer page name in that code?

      Comment

      • Dirty F
        Too lazy to set a custom title
        • Jul 2001
        • 59204

        #4
        Install Mod_layout.

        Comment

        • snowball179
          Confirmed User
          • Dec 2002
          • 261

          #5
          battus: I cannot ... my sysadmin isn't there and I need it tonight .

          Comment

          • fletcher
            Confirmed User
            • Jan 2003
            • 698

            #6
            Since you can't install mod_layout...try this in .htaccess:

            ------------------

            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !header.php
            RewriteRule (.*\.shtml)$ http://www.yourdomain.com/header.php?url=$1

            ------------------

            Then in header.php:

            ------------------

            <?

            include("header.html");
            include($_REQUEST['url']);
            include("footer.html");

            ?>

            ------------------

            Make header.html your header, and footer.html your footer. That should work. Obviously it's totally ghetto and there is NO error checking

            Hit me up on ICQ at 225006418 if you want.
            Last edited by fletcher; 01-30-2003, 08:42 PM.
            &nbsp;
            [email protected]
            ICQ: 6411138

            Comment

            • snowball179
              Confirmed User
              • Dec 2002
              • 261

              #7
              thanks
              It works

              Comment

              Working...