Anyone used SSI with HostGator?

by eshera
3 replies
Hi everybody!

I use HostGator and have a SSI that I use for a client that updates her lunch specials everyday.

The problem I am now having is using a new domain with the same SSI. I would like her to only update ONE file as she is hesitant to make mistakes. This is what I am trying to use to 'share' the file with both domain names (USERNAME being mine):

<!--#include file="/home/USERNAME/specials/lunch.html" -->

or

<!--#include virtual="/home/USERNAME/specials/lunch.html" -->

If anyone has run into this, I would appreciate it. I have searched HG forum with no luck, and contacted tech support, and they can't help either...

Thanks!
-she
#hostgator #ssi
  • Profile picture of the author Mark Brian
    You have to name your main page with .shtml extension.

    Better if you can do it in PHP just put something like:

    <?php include 'page.html'; ?>
    Signature

    {{ DiscussionBoard.errors[602015].message }}
    • Profile picture of the author eshera
      I have it to work in just the one domain, and yes, I am using the'.shtml' file extension. I am trying to share one file between two domain names, both hosted under my username at hostgator.

      Thanks, though
      Signature
      There are 10 types of people in the world: Those who understand binary and those who don’t.
      {{ DiscussionBoard.errors[602106].message }}
  • Profile picture of the author harrisunderwork
    First one is the correct option.
    Signature
    {{ DiscussionBoard.errors[602681].message }}

Trending Topics