Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   SSI problem..? (http://www.greenguysboard.com/board/showthread.php?t=21765)

amber438 2005-07-08 12:42 PM

SSI problem..?
 
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 01: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 01: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 01:49 PM

Quote:

Originally Posted by cd34
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 02: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 02: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 02: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 02: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

amber438 2005-07-08 03: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 03:22 PM

include "$DOCUMENT_ROOT/file-to-be-included.whatever";
?>

amber438 2005-07-08 04:53 PM

ah..thanks Cleo
Just found that out in some research too

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


All times are GMT -4. The time now is 04:19 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc