Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-15-2006, 04:24 PM   #1
elron
Confirmed User
 
Join Date: Jul 2003
Posts: 1,553
any .htacess experts here ?

anyone got an idea what could prevent from simple include in html file from not working ?

<!--#include virtual='/c/xxx.html'-->

on old server it showed the content of xxx.html on the page , now it's just showing this line .

The htaccess file stayed the same .

anyone knows which specification should be written in the .htaccess file for this to work ?
and i can't rename it to .shtml
elron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2006, 04:49 PM   #2
RayVega
Confirmed User
 
RayVega's Avatar
 
Industry Role:
Join Date: Jul 2004
Location: New York ICQ#348007554
Posts: 4,212
Quote:
Originally Posted by elron
anyone got an idea what could prevent from simple include in html file from not working ?

<!--#include virtual='/c/xxx.html'-->

on old server it showed the content of xxx.html on the page , now it's just showing this line .

The htaccess file stayed the same .

anyone knows which specification should be written in the .htaccess file for this to work ?
and i can't rename it to .shtml
Well first off do you have server side includes allowed on the server? Server admin has to allow ssi or there's not much you can do except use an iframe.
__________________
Ray "The Don" Vega

Managing Director
Private Equity Fund

[email protected]
RayVega is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2006, 04:49 PM   #3
Nasty
Confirmed User
 
Nasty's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: Sunny Fucking California
Posts: 1,575
Put something like this in your htaccess to parse other file types

AddHandler server-parsed .shtml .shtm .htm .html
__________________

“Ours is a world of nuclear giants and ethical infants. We know more about war than we know about peace, more about killing than we know about living. If we continue to develop our technology without wisdom or prudence, our servant may prove to be our executioner.” ― Omar Bradley (1948)
Nasty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2006, 04:51 PM   #4
RayVega
Confirmed User
 
RayVega's Avatar
 
Industry Role:
Join Date: Jul 2004
Location: New York ICQ#348007554
Posts: 4,212
You may also need this in your htaccess
Options +Includes
This tells Apache that you want to permit files to be parsed for SSI directives.
__________________
Ray "The Don" Vega

Managing Director
Private Equity Fund

[email protected]
RayVega is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2006, 05:06 PM   #5
elron
Confirmed User
 
Join Date: Jul 2003
Posts: 1,553
Quote:
Originally Posted by RayVega
Well first off do you have server side includes allowed on the server? Server admin has to allow ssi or there's not much you can do except use an iframe.
on shtml file it will work but i want to allow this to work on html also
elron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2006, 05:11 PM   #6
elron
Confirmed User
 
Join Date: Jul 2003
Posts: 1,553
Quote:
Originally Posted by Nasty
Put something like this in your htaccess to parse other file types

AddHandler server-parsed .shtml .shtm .htm .html

That solved the problem , thanks

I knew i had to have something like this , i already had :

AddType text/x-server-parsed-html .html



what's this line for then ?
elron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-15-2006, 05:17 PM   #7
RayVega
Confirmed User
 
RayVega's Avatar
 
Industry Role:
Join Date: Jul 2004
Location: New York ICQ#348007554
Posts: 4,212
Nice! glad you fixed it. Shit like that will drive you nuts!
__________________
Ray "The Don" Vega

Managing Director
Private Equity Fund

[email protected]
RayVega is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.