Forum Moderators: phranque
I also need to know how to set a rule to send every request to www.mydomain.com/-/ to www.mydomain.com .
Thanks a lot for helping.
[httpd.apache.org...]
You said you wanted to parse .htm and .html for SSI, but the code you posted only enables .htm parsing.
Jim
If you have SSI-included files that themselves include other SSI, make sure those filetypes are also being parsed for SSI - That's one of the easier ways to cause this problem. For example if you use SSI to include a file called footer.std, and footer.std uses SSI to add "This page last modified" and the Last-modified date to your footer, then you'll have to enable SSI parsing for filetype ".std".
Jim
AddType text/html .html
AddHandler server-parsed .html
I've had it working with a .txt file included, but this time with the host where I'm using it, it had to be an .html extension (or .htm - same thing) to get it to work. I used leftnav.html for the left navigation part - works fine.
Watch about the location of the page relative to the page where the included file will be; I find that the hardest part and sometimes end up putting the include in the same /folder/ to keep things uncomplicated for myself.
It did not work with /include.html in the root, it did work without the forward slash - include.html.
Added:
Try using both of them, with separate entries and see what happens
AddType text/html .html
AddHandler server-parsed .html
and
AddType text/html .htm
AddHandler server-parsed .htm
I realize there might be better or shorter ways, but I try to idiot-proof everything for myself. :)