Results 1 to 6 of 6
  1. #1
    Troll Killer and best Snooper!
    I decide when the pigs fly!
    Rhea's Avatar
    Join Date
    January 18th, 2005
    Location
    New York, USA
    Posts
    6,195
    SSI hell...HELP!
    I use server-side includes for navigation on my web sites. I switched hosts last week and my new host, hostgator, has a different setup for handling SSIs which is going to cause me a lot of extra work unless one of you smart folks has a better solution for me.

    The old host had SSI set up so that I could name the pages that called SSIs with the .html extension. Hostgator is telling me I have to change all my pages that use SSI to .shtml. Which wouldn't be so bad but we're talking about thousands of pages that need to be renamed.

    So, first question...is there a workaround that will let me use SSI on pages with a .html extension?

    Second question, does anyone know of a software package I can download or buy that will let me globally change the file extension? (That'd help a lot.)

    Muchos!

  2. #2
    Member
    Join Date
    May 31st, 2008
    Posts
    73
    Quote Originally Posted by Rhea View Post

    Second question, does anyone know of a software package I can download or buy that will let me globally change the file extension? (That'd help a lot.)

    Muchos!
    There's a program called DOS out there...

    c:\mysite>ren *.html *.shtml

    to get there on a windows system:
    hold down your Windows Key and tap the Letter R - let them both go
    Type CMD and click
    OK

    HTH

  3. #3
    Believe knight01's Avatar
    Join Date
    August 14th, 2006
    Location
    Dayton, Ohio
    Posts
    1,815
    If you don't already have a .htaccess create one. If it has something like :
    Options +Includes

    If it already has that then add under that line:
    AddType text/html .shtml
    AddHandler server-parsed .html


    It's been a long time since I used ssi so I may be off, but it should give you something to search on to get more specific help.
    Someday starts today
    Military Discounts

  4. #4
    Believe knight01's Avatar
    Join Date
    August 14th, 2006
    Location
    Dayton, Ohio
    Posts
    1,815
    Better directions, explanation and warnings.

    www.javascriptkit.com/howto/htaccess4.shtml
    Last edited by knight01; August 29th, 2010 at 03:42 PM.
    Someday starts today
    Military Discounts

  5. #5
    Troll Killer and best Snooper!
    I decide when the pigs fly!
    Rhea's Avatar
    Join Date
    January 18th, 2005
    Location
    New York, USA
    Posts
    6,195
    YOU GUYS ROCK!!!

    I phoned hostgator and explained the situation to them and they have changed the .htaccess files on my sites to allow .html files to call SSI.

    I'M SO HAPPY!!!

    THANK YOU THANK YOU THANK YOU!!!

  6. #6
    ABW Ambassador Joshua's Avatar
    Join Date
    August 17th, 2006
    Posts
    854
    I haven't used SSI in years - Everything that I had used SSI for in the past (10 years ago?), I use PHP to do these days. I found that PHP was more flexible, and since I was already adding php code to my pages, might as well have changed the includes, as well.

    If you were to transition things to PHP, you'd probably have to do the same with your htaccess to let a .html file run PHP.

  7. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Google "HELL"o and Goodbye??? Is Hell Finally Going Away?
    By Rollerblader in forum Search Engine Optimization
    Replies: 6
    Last Post: December 20th, 2007, 04:10 PM
  2. Need help With SSI
    By Doug247 in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: December 8th, 2003, 08:35 PM
  3. SSI instead of Script
    By buy-books-for-kids in forum Cusimano.com Scripts
    Replies: 1
    Last Post: July 1st, 2003, 11:47 AM
  4. ssi?
    By buyyourstuff in forum Cusimano.com Scripts
    Replies: 1
    Last Post: April 4th, 2003, 11:49 PM

Posting Permissions

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