![]() |
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!! |
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.
|
In your .htaccess file put:
AddHandler server-parsed .shtml .html Then you can use .html and have it parsed. |
Quote:
and would that not make the server slower by parsing all files? |
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. |
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 |
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? |
I am in the process of changing the link
it's on the top right hand side of the index page here ya go |
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 |
include "$DOCUMENT_ROOT/file-to-be-included.whatever";
?> |
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