What do I got to do?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Unchilled
    Confirmed User
    • Sep 2001
    • 125

    #1

    What do I got to do?

    What do I gotta do to make index.shtml automatically popup in a browser in a given directory in the same way index.html would?

    Thanks.
  • Amputate Your Head
    There can be only one
    • Aug 2001
    • 39075

    #2
    Add the .shtml extension to your httpd.conf file (if running Apache) either before the other 2 extensions, or after them and then get rid of any other index.*** files in the root.

    Then format c:

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

        <A HREF="http://www.xanobyte.com" TARGET=_blank>
    PRE-MADE & CUSTOM SITES</A>
    SIG TOO BIG

    Comment

    • Amputate Your Head
      There can be only one
      • Aug 2001
      • 39075

      #3
      Whoops.... you said ANY directory... okay... same thing... add the extension to the httpd.conf file, and make sure your .shtml extensioned index file is the only index in the specified directory.

      Then format c:
      SIG TOO BIG

      Comment

      • RK
        Confirmed User
        • Aug 2001
        • 868

        #4
        Create an .htaccess file in the directory and put the following in it:

        DirectoryIndex index.shtml
        AddType text/html .shtml
        AddHandler server-parsed .shtml

        If it does not work then you probably need a properly configured server from EnergyHosting

        ------------------
        Create Your Own Hosting Plan!
        Pay-As-You-Go Hosting FREE Trial!
        Limited Time Specials
        EnergyHosting - Energizing your business
        Does anyone look down here?

        Comment

        • Unchilled
          Confirmed User
          • Sep 2001
          • 125

          #5
          Gotcha,

          Thanks Amp.

          Comment

          • Unchilled
            Confirmed User
            • Sep 2001
            • 125

            #6
            RK,

            No shit, I'm always bugging my host to change something that isn't configured right.

            Comment

            • Amputate Your Head
              There can be only one
              • Aug 2001
              • 39075

              #7
              It may already be set up for those extensions... if you upload one with an .shtml extension or even just rename one to .shtml, you can test it quick and see if it'll work... if not... then the begging process begins.

              Then format c:
              SIG TOO BIG

              Comment

              • Amputate Your Head
                There can be only one
                • Aug 2001
                • 39075

                #8
                Most ARE set up to handle server side includes.... unless it's a freehost... I don't really know if they allow it or not. Maybe oscar or somebody can enlighten us with some o' that good knowledge. I'm sure it couldn't hurt to ask. But either way...

                format c:
                SIG TOO BIG

                Comment

                • Wilber
                  Confirmed User
                  • May 2001
                  • 1295

                  #9
                  You can avoid parsing *.shtml with AddHandler and just config
                  for XBitHack. This saves from having to add the extra suffix
                  to pages w/includes. It's also httpd.conf or .htaccess configurable.

                  httpd.conf
                  Options +Includes
                  XBitHack on

                  .htaccess
                  AllowOverride Options
                  Options +Includes
                  XBitHack on

                  If your the paranoid type...

                  httpd.conf
                  Options +IncludesNOExec
                  XBitHack on

                  .htaccess
                  AllowOverride Options
                  Options +IncludesNOExec
                  XBitHack on

                  edited out 1 too many options

                  [This message has been edited by Wilber (edited 12-09-2001).]
                  Sig NOT for sale

                  Comment

                  • RK
                    Confirmed User
                    • Aug 2001
                    • 868

                    #10
                    Originally posted by Wilber:
                    .htaccess
                    AllowOverride Options
                    Options +Includes
                    XBitHack on

                    .htaccess
                    AllowOverride Options
                    Options +IncludesNOExec
                    XBitHack on
                    Have you ever used the above? It seems incorrect.

                    ------------------
                    Create Your Own Hosting Plan!
                    Pay-As-You-Go Hosting FREE Trial!
                    Limited Time Specials
                    EnergyHosting - Energizing your business

                    [This message has been edited by RK (edited 12-09-2001).]
                    Does anyone look down here?

                    Comment

                    Working...