kfosterm Posted July 21, 2004 Posted July 21, 2004 I'm searching for what is necessary to add to my htaccess file (if anything) to get a simple SSI tag to work on my site. TCHMike responded to a similar question here...but didn't include any info on the htaccess. I put this on my site and am getting "an error occurred while processing this directive" error. I'm assuming something has to be done to the htaccess, but can't be sure. I am essentially trying to do the same sort of thing as described on this site and just copied and pasted the relavent parts as described down at the end of the article. Any help would be appreciated. I'm new to SSI and not quite sure how to make it work, but am encouraged by it's possibilites and I just need a few pointers to make things click. THanks. Quote
TCH-Don Posted July 21, 2004 Posted July 21, 2004 It looks like the page that has the error is photoblog/index.html should it be photoblog/index.shtml Quote
kfosterm Posted July 21, 2004 Author Posted July 21, 2004 This did not work. What are the basic requirements to get SSI to work? ( I mean, besides correct code) Is there somethign I need to add to the htaccess file? Thanks again. Quote
TCH-Bruce Posted July 21, 2004 Posted July 21, 2004 What is the SSI code you are trying to execute? Maybe that will help determining why it's not working. You only need to name the file with a .shtml extension for SSI directives to be processed. Quote
CloverDale Posted July 21, 2004 Posted July 21, 2004 Just wondering.. is it ok to edit the .htaccess file? You can add this bit and you won't have to change any html files to shtml files if they are using SSI. AddType text/html .shtml AddHandler server-parsed .html AddHandler server-parsed .shtml Options Indexes FollowSymLinks Includes DirectoryIndex index.shtml index.html Kindest Regards, Billie Jo Quote
TCH-Don Posted July 21, 2004 Posted July 21, 2004 Yes you can edit your .htaccess file and in cpanel there are a few shortcuts to help such as Apache Handlers where you can add the same thing to allow php in an html page Quote
kfosterm Posted July 23, 2004 Author Posted July 23, 2004 Oh for the love of... Turns out this particular user didn't quite understand what a 'virtual path' was... Now I know. Thank you to those who answered. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.