Gossamer Forum
Quote Reply
SSI in CGI
hi, all. i've got my SSIs working from the templates pages, but now it seems that Links 2.0 uses templates as CGI output. example:
go to the main page of Links 2.0, and click on 'add link' or something like that. it goes to add.cgi, instead of (in my case) a .shtml file.

my server is set up to only pasrse SSI from files ending in .shtml. but since it is a CGFI file using the templates, it is not parsing the SSI, which leaves a page without navigation or contact info, as well as no button ads.

to see what i mean, go to
http://music.theoretic.com

and click on 'add a resource'

------------------
Theoretic Internet Services (http://www.theoretic.com)
'Your Web Hosting, Button Exchange, and Weather Forecasts Solution, with Just Two Words: Quality and Privacy'
Quote Reply
Re: SSI in CGI In reply to
If you add this to your .htaccess file then the server should parse .html files

AddType text/x-server-parsed-html .html
Quote Reply
Re: SSI in CGI In reply to
hi,
thanks, but the problem is not with parsing .html files, it is parsing the SSI includes that are in the HTML output from .cgi files.

example: from the pages, a person 'adds a resource', and is taken to add.cgi instead of a html (or in my case shtml) page generated from the templates.

i need a way to have the SSI includes in the HTML output of the cgi files parsed.

thanks anyway, though.

------------------
Theoretic Internet Services (http://www.theoretic.com)
'Your Web Hosting, Button Exchange, and Weather Forecasts Solution, with Just Two Words: Quality and Privacy'
Quote Reply
Re: SSI in CGI In reply to
Can't you change the link that add leads to. For instance you could create a add.shtml page and use the same form add.cgi uses to submit links.

<form action="url_to/add.cgi" method="POST">
title
url
category
description
name
email
Quote Reply
Re: SSI in CGI In reply to
that's not a bad idea. if i can't find any other way to do it, i'll probably have to do it that way. thanks Smile

------------------
Theoretic Internet Services (http://www.theoretic.com)
'Your Web Hosting, Button Exchange, and Weather Forecasts Solution, with Just Two Words: Quality and Privacy'