GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   any .htacess experts here ? (https://gfy.com/showthread.php?t=644719)

elron 08-15-2006 04:24 PM

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

RayVega 08-15-2006 04:49 PM

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.

Nasty 08-15-2006 04:49 PM

Put something like this in your htaccess to parse other file types

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

RayVega 08-15-2006 04:51 PM

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.

elron 08-15-2006 05:06 PM

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 08-15-2006 05:11 PM

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 :thumbsup

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 ?

RayVega 08-15-2006 05:17 PM

Nice! glad you fixed it. Shit like that will drive you nuts!


All times are GMT -7. The time now is 07:16 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123