|
2005-07-08, 12:42 PM | #1 |
Whatever don't kill ya makes ya stronger...
|
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!! |
2005-07-08, 01:01 PM | #2 |
That which does not kill us, will try, try again.
|
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.
__________________
"If you're happy and you know it, think again." -- Guru Pitka |
2005-07-08, 01:07 PM | #3 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
In your .htaccess file put:
AddHandler server-parsed .shtml .html Then you can use .html and have it parsed.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
2005-07-08, 01:49 PM | #4 | |
Whatever don't kill ya makes ya stronger...
|
Quote:
and would that not make the server slower by parsing all files? |
|
2005-07-08, 02:00 PM | #5 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
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.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
2005-07-08, 02:02 PM | #6 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
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 |
2005-07-08, 02:42 PM | #7 |
~Serving Up Sinful Sex ~
Join Date: Apr 2003
Location: Missouri City, Texas
Posts: 1,928
|
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? |
2005-07-08, 02:45 PM | #8 |
Whatever don't kill ya makes ya stronger...
|
I am in the process of changing the link
it's on the top right hand side of the index page here ya go |
2005-07-08, 03:15 PM | #9 |
Whatever don't kill ya makes ya stronger...
|
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 |
2005-07-08, 03:22 PM | #10 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
<?php
include "$DOCUMENT_ROOT/file-to-be-included.whatever"; ?> |
2005-07-08, 04:53 PM | #11 |
Whatever don't kill ya makes ya stronger...
|
ah..thanks Cleo
Just found that out in some research too now to make the damned script work correctly Thank you all!! |
|
|