Gossamer Forum
Home : Products : Gossamer Links : Discussions :

.shtml and links SQL

Quote Reply
.shtml and links SQL
On my server ssi only works on .shtml extensions, and not .htm or .html but I wish to use ssi with the links sql 2 templates. How will I go about doing this? Will it work if I simply rename all the files to .shtml extensions.

Thanks.

Quote Reply
Re: .shtml and links SQL In reply to
In the admin go to setup->build options and set the following:

build_index index.shtml
build_extension .shtml

- Didi

Quote Reply
Re: .shtml and links SQL In reply to
I have a solution for you :
Make a .htacess file into your root directory with :

AddType text/x-server-parsed-html .htm .html .shtm .shtml Options -Indexes

Now you should use ssi from html htm shtm or shtml

No need to change anything in LinksSQL. It is better to and with html or htm because some search engines may ignore shtm or shtml ending. Hope it work , it has for me.


Quote Reply
Re: .shtml and links SQL In reply to
ops ,
.htaccess I mean.

Quote Reply
Re: .shtml and links SQL In reply to
In Reply To:
It is better to and with html or htm because some search engines may ignore shtm or shtml ending.
Huh?? Now, that's a new one...Which search engines, pray tell, ignore shtml/shtm extensions??? I know that some ignore .cgi/.pl with parameters, but SHTML/SHTM???

Please provide documentation, article references, etc. that explains this. I am curious...

Regards,

Eliot Lee
Quote Reply
Re: .shtml and links SQL In reply to
search engines i am 99% sure don't ignore anything based on the extension. They just don't save results when there is a query string like ?id= although google.com and altavista.com do now with google.com doing it a lot better.

http://www.ASciFi.com/ - The Science Fiction Portal
Quote Reply
Re: .shtml and links SQL In reply to
In Reply To:

ome ignore .cgi/.pl with parameters


That is what I meant or query strings...

Wink

Regards,

Eliot Lee
Quote Reply
Re: .shtml and links SQL In reply to
That is not the way to do it.

The first response was correct about changing the extension.

Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/
Quote Reply
Re: .shtml and links SQL In reply to
I Agree,

I would do the first suggestion, when the server see's the ssi extention it has to parse the information in the page, which can slow things down a little and use more server resources, by enabeling this on all pages .html included will lag your site big time, beleive me i learnt the hard way!!



Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: [mdj1] .shtml and links SQL In reply to
Hi
I have switched to .shtml pages and things seem to be working ok.
The only prob I run into is...
The includes I am using are in the root.
If I am 3 dirs deep, how would I call that include?
It could be changed on every index.shtml page in each dir manually.. but ummm that wouold take yonks...
The includes are in the 'include_header.shtml.
which is called by every page. I just can't figure the path out.
If I put http://www.path/to/include it doesn't work.
Do I need to use the path as in /home/user/domain/
(cos that doesn't work either)

I am confused...

Thanks Cool

Tracy


ok.. I figured most of it.
All includes are working correctly now.
except the index page of the subcategory.
E.g.
Main category is photography.
Within that dir you have Film and equipment directories.
its this last layer of directories that are giving me the problems. The index.shtml within the film or equipment dir is giving me the [an error occurred while processing this directive]
What is this page called?

Thanks again

Last edited by:

CptPugwash: Oct 24, 2001, 11:09 PM
Quote Reply
Re: [CptPugwash] .shtml and links SQL In reply to
Hi,

Make sure your SSI is using absolute paths:

<!--#include virtual="/includes/header.html"-->

i.e, start with a leading /.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] .shtml and links SQL In reply to
Sorry for all the rambling in the message above.
But that worked.. I was missing the leading /

Thanks Alex

Just one last question.. How would I go about putting includes on the Email, Modify a Link, Search and Add a Link pages as they are all called from a .cgi script.
The <%include include_header.html%> works fine on all pages
Would it be possible to add the includes into the include_header.html and then just call that file on each and every page (as it was originally)??

Thansk again
Quote Reply
Re: [CptPugwash] .shtml and links SQL In reply to
Hi,

You can't use SSI on cgi generated pages. You can use:

<%include /full/path/to/file.txt%>

in any template and it will work in cgi or static mode.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] .shtml and links SQL In reply to
BIG pat on the back for Alex!


Thank you

Capt*