Log in

View Full Version : SSI problem..?


amber438
2005-07-08, 01:42 PM
If anyone can help, I'd appreciate it
I am trying all different ways to get an include to work on my index.html page. I can't rename it to shtml because it's my main site index.

any ideas??
Cheers!!

Simon
2005-07-08, 02:01 PM
Well...you could tell your server to process all html pages just like shtml pages... that would work but then your server would be checking all your html pages for directives before serving the pages. Another option might be to redirect all requests for index.html to index.shtml (I'm not sure if that would hurt you in SE traffic but it would give you the shtml page you want people to see). Maybe someone will have another, better, suggestion.

cd34
2005-07-08, 02:07 PM
In your .htaccess file put:

AddHandler server-parsed .shtml .html

Then you can use .html and have it parsed.

amber438
2005-07-08, 02:49 PM
In your .htaccess file put:

AddHandler server-parsed .shtml .html

Then you can use .html and have it parsed.

server htaccess or domain htaccess?
and would that not make the server slower by parsing all files?

cd34
2005-07-08, 03:00 PM
Years ago I used to think, hey, parsing every file is bad. But, if you are going to rename all of your files to use parsing, then the server is really doing the same amount of work.

You could do it on a per domain basis or per directory if you wanted. If you have a lot of pages that don't need to be parsed, you might try to arrange things so that everything isn't parsed.

Cleo
2005-07-08, 03:02 PM
You could turn it on for your root and then turn it back off by your subdirectories by doing this correct?
AddHandler server-parsed .shtml

ladydesigner
2005-07-08, 03:42 PM
Amber,

Just wanted to let you know when I click on your "submit" link, it redirects to your index page. Are you not taking submissions right now?

amber438
2005-07-08, 03:45 PM
I am in the process of changing the link
it's on the top right hand side of the index page


here ya go (http://www.red-hot-links.com/main/link_submit.php)

amber438
2005-07-08, 04:15 PM
Well, it seems tht my server is configured to parse php on html and they can't do that..
so they told me I can use a php include to do what I want..
now to find out what that is

Cleo
2005-07-08, 04:22 PM
<?php
include "$DOCUMENT_ROOT/file-to-be-included.whatever";
?>

amber438
2005-07-08, 05:53 PM
ah..thanks Cleo
Just found that out in some research too

now to make the damned script work correctly
Thank you all!!