.htaccess / SSI

Discussion in 'Apache' started by Del, Jul 31, 2008.

  1. #1
    Hi

    I recently sent the following to my hosting company:


    "What I am trying to do is to set up the SSI for the menu that I have on the Esophy.com website that is hosted by Inmotion. I was searching around the Net for a way to have just one menu page that I could change and have all the pages where the menu is located to reflect this.

    Thus far the instructions I've come across tell of different approaches like changing .htaccess files, enabling "Apache's XBitHack", shtml files and so on.

    I've looked at the "Apache Handlers" on the CPanel and I think that may be where I configure this but I'm not certain and that's why Im asking. If in fact that is where it is effected could you please inform me as to what exactly I would be typing in the 'Handler' and 'Extension(s)' boxes? I see at the bottom examples of the 'System' Apache handlers but not sure if any of them apply to 'User Defined' ones."


    Their reply was to add the following to the .htaccess that was already created by the redirect feature on the Cpanel:

    AddType text/html .shtml .shtm .htm .html
    AddHandler server-parsed .shtml .shtm .htm .html
    Options Indexes FollowSymLinks Includes

    I just wanted to check with someone here versed in "all things Apache" as to if this is the way to go and does it really matter where in the .htaccess I place this; does it go before the list of redirects or after?

    Thanks

    Del
     
    Del, Jul 31, 2008 IP
  2. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Placement within the file makes no difference, but to keep certain order you must prefer add this after any rewriting URL existing in your .htaccess or above explicit redirects made via Cpanel.
     
    Trusted Writer, Jul 31, 2008 IP
    graphseo likes this.
  3. Del

    Del Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Trusted Writer

    Thank you for the reply. Will proceed in this manner.

    Del
     
    Del, Aug 1, 2008 IP