Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-07-08, 12:42 PM   #1
amber438
Whatever don't kill ya makes ya stronger...
 
amber438's Avatar
 
Join Date: Apr 2003
Location: New York
Posts: 820
Send a message via ICQ to amber438
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!!
__________________
Red Hot Links
Red Hot Galleries
amber438 is offline   Reply With Quote
Old 2005-07-08, 01:01 PM   #2
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
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
Simon is offline   Reply With Quote
Old 2005-07-08, 01:07 PM   #3
cd34
a.k.a. Sparky
 
cd34's Avatar
 
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
cd34 is offline   Reply With Quote
Old 2005-07-08, 01:49 PM   #4
amber438
Whatever don't kill ya makes ya stronger...
 
amber438's Avatar
 
Join Date: Apr 2003
Location: New York
Posts: 820
Send a message via ICQ to amber438
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?
__________________
Red Hot Links
Red Hot Galleries
amber438 is offline   Reply With Quote
Old 2005-07-08, 02:00 PM   #5
cd34
a.k.a. Sparky
 
cd34's Avatar
 
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
cd34 is offline   Reply With Quote
Old 2005-07-08, 02:02 PM   #6
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
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
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-07-08, 02:42 PM   #7
ladydesigner
~Serving Up Sinful Sex ~
 
ladydesigner's Avatar
 
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?
__________________
Porn Pixie XxX ~ Looking for Link Trades
ladydesigner is offline   Reply With Quote
Old 2005-07-08, 02:45 PM   #8
amber438
Whatever don't kill ya makes ya stronger...
 
amber438's Avatar
 
Join Date: Apr 2003
Location: New York
Posts: 820
Send a message via ICQ to amber438
I am in the process of changing the link
it's on the top right hand side of the index page


here ya go
__________________
Red Hot Links
Red Hot Galleries
amber438 is offline   Reply With Quote
Old 2005-07-08, 03:15 PM   #9
amber438
Whatever don't kill ya makes ya stronger...
 
amber438's Avatar
 
Join Date: Apr 2003
Location: New York
Posts: 820
Send a message via ICQ to amber438
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
__________________
Red Hot Links
Red Hot Galleries
amber438 is offline   Reply With Quote
Old 2005-07-08, 03:22 PM   #10
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
<?php
include "$DOCUMENT_ROOT/file-to-be-included.whatever";
?>
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-07-08, 04:53 PM   #11
amber438
Whatever don't kill ya makes ya stronger...
 
amber438's Avatar
 
Join Date: Apr 2003
Location: New York
Posts: 820
Send a message via ICQ to amber438
ah..thanks Cleo
Just found that out in some research too

now to make the damned script work correctly
Thank you all!!
__________________
Red Hot Links
Red Hot Galleries
amber438 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:35 PM.


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