Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...