Jump to content

Recommended Posts

Posted

I have a menu file that I use SSI for, to include in the top of each of my page. Here's the code I'm used to using ... please critique and correct so it works here on heliohost .....

 

<!--#include virtual="/~kymercer/menu.txt"--> (this is what I used on my previous host, and it worked)

 

I've changed the filename to menu.shtml, but don't know what to put in place of /~kymercer/ in order to get it to work.

 

To see a page that should/would/could have this, go to http://kymercer.heli...rg/census/1860/ and do a 'View Source' to see how I have it now.

 

It's obviously not right, and I can't find anything here to instruct me how to do it.

 

Any help appreciated!

Posted

Try adding the following code to the .htacess file of your main directory:

 

AddType text/html .shtml

AddHandler server-parsed .shtml

Options Indexes FollowSymLinks Includes

Posted

Thanks so much for answering. My .htaccess file was in the /public_html folder. I edited the lines you suggested into the end of the file and saved it, but it doesn't seem to have made a difference. I'm still tinkering :-) Thanks again. More suggestions welcome.

Posted

SSI is already enabled on our servers so there's no need to edit the .htaccess file.

 

This page:

 

http://kymercer.heliohost.org/census/1860/

 

Should end in index.shtml

 

http://kymercer.heliohost.org/census/1860/index.shtml

 

Your menu.shtml should end in .txt

 

This looks ok but you need to change it after you rename it to a text file.

 

< !--#include virtual="../../menu.shtml"-->

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...