View Full Version : SSI has me at wits end!
Kudzu
05-09-2008, 09:07 PM
I have done this and have it working on GoDaddy server. So my code should be right. I move the site to here, BlueHost and it won't work. To keep from messing up my web site. I have created a test file on my site.
Bottom line is I can get the menu/test file to 'include' only if it is in the same directory as the .shtml file. If it is up one level it refuses to call it in and have tried NUMEROUS code versions.
(I have many subfolders on my website so putting the menu file in each folder to make it work would totally defeat the advantage of the SSI. So please don't tell that is what I have to do. I have never had this problem on other servers before)
Here is the codes I have tried. I put a letter or number in front so I keep track of what worked.... assuming it is ever going to work that is!!
<html>
<head>
</head>
1<!--#include file="menutest.htm" --><br />
2<!--#include="menutest.htm" --> <br />
3<!--#include virtual="/menutest.htm" --><br />
4<!--#include virtual="./menutest.htm" --><br />
a <!--#include file="/menutest.htm" --><br />
b <!--#include virtual="menutest.htm" --><br />
c <!--#include virtual="/menutest.htm" --> <br />
d <!--#include file="/home/kudzupat/public_html/menutest.htm" --><br />
e <!--#include="/home/kudzupat/public_html/menutest.htm" --><br />
f <!--#include virtual="/home/kudzupat/public_html/menutest.htm" --><br />
g <!--#include virtual="/home/kudzupat/public_html/menutest.htm" --><br />
</body>
</html>
As you can see, I have tried every combination I can some up with. There are others I deleted too. I have talked to three different people in support with no help. An open ticket that is getting no where. I really don't want to stay at GoDaddy but at least it works right there!!
Early Out
05-09-2008, 09:26 PM
The include file has to have a .shtml extension.
Let me correct that: the file with the include embedded in it has to have the .shtml extension. The file you're including can have any extension you like, of course.
The most recent thread about it: http://www.bluehostforum.com/showthread.php?t=10664
Kudzu
05-09-2008, 09:38 PM
My files is test.shtml
My file to be included is menutest.htm
I have some set up at .txt files too. They don't pull up either unless they are in the same directory, then they work fine.
http://69.89.31.233/~kudzupat/test/test.shtml Here is the link to the file.
Early Out
05-09-2008, 09:42 PM
Just some shots in the dark...
Your code has no opening <body> tag.
What if you put your menutest.htm in the root of your account?
Early Out
05-09-2008, 09:48 PM
I can't get it to work, either. Puzzling....
Kudzu
05-09-2008, 09:53 PM
Added body tag - nothing.
FWIW I was trying to eliminate my existing web site I uploaded. So I just created this butt simple page to test it.
Uploaded a copy to root directory- NADA!
Not to beat a dead horse but I have done this many times. Have it up an running at the other place no problem.
Put it in the same directory and it calls it up. Really makes me think it is sever issue. I don't think there is a code combo I haven't tired?
Kudzu
05-09-2008, 10:01 PM
I can't get it to work, either. Puzzling....
Glad to see someone else see's it. Guys I have had on the phone weren't much help either.
Early Out
05-09-2008, 10:03 PM
Well, I've got an example working.
I put a test.txt file in public_html. My test.shtml:
<html>
<head>
<title>Include Test</title>
</head>
<body>
<!--#include virtual="/test.txt" -->
</body>
</html>
The test.shtml works no matter how many levels deep it is on my site.
Kudzu
05-09-2008, 10:06 PM
Let me try it on mine. BRB
No Joy in Mudville
<html>
<head>
<title>Include Test</title>
</head>
<body>
<!--#include virtual="/test.txt" -->
</body>
</html>
Saved as test1.shml in my public_html/test directory and public_html
Here are the links.
http://69.89.31.233/~kudzupat/test/test1.shtml
http://69.89.31.233/~kudzupat/test1.shtml
created a file test.txt here is the contents of the file. Just a simple link.
<a href="www.hortonappraisal.com" title="HortonAppraisal">Horton Appraisal</a>
Saved it in the public_html directory.
Early Out
05-09-2008, 10:27 PM
Not sure what to tell you. It works fine for me (with the addition of http:// in front of the href address, of course).
Here's test.txt, sitting in my public_html:
<a href="http://www.hortonappraisal.com" title="HortonAppraisal">Horton Appraisal</a>
And test.shtml, sitting two levels down:
<html>
<head>
<title>Include Test</title>
</head>
<body>
<!--#include virtual="/test.txt" -->
</body>
</html>
The result:(test site taken down - worked OK)
Early Out
05-09-2008, 10:28 PM
Make sure there isn't something flaky in your .htaccess file.
Kudzu
05-09-2008, 10:37 PM
I have an open support ticket. I will go back and reference this thread so they can see what we have done. Only good thing is that your seeing it too.
One thing has crossed my mind. I hosted with another place, moved to GoDaddy and then decided to go back to first host. I have the same exact problem there too. Then I come here, same thing. This make me wonder if it could be something (a file) in my site causing this??
I think I may just delete everything and try this again. That would eliminate that and it would have to be server problem. At this point, unless someone can find it I am just have to cancel the account.
Going to call it night. Thanks for the help.
Early Out
05-09-2008, 10:44 PM
Only good thing is that your seeing it too.Well no, I'm not seeing it. It's working for me.
At this point, I think it's pretty clear that the problem is with your files, not with the host, don't you think? Time to start from a clean slate, and double-check everything.
Kudzu
05-09-2008, 10:46 PM
OK it has to be BlueHost. I deleted everything.
Uploaded the test files we created and guess what?
http://69.89.31.233/~kudzupat/test/test1.shtml
Early Out
05-09-2008, 10:48 PM
Another long shot. Going in via an IP address might be the problem. What's your actual domain name?
Kudzu
05-09-2008, 10:51 PM
Well thats all I can do and I think I prove my case it's not me!
Thanks of the help I am out here.
Kudzu
05-09-2008, 10:52 PM
Another long shot. Going in via an IP address might be the problem. What's your actual domain name?
I have not changed the DNS yet. Wanted to get it working before I did just in case. Darn glad I haven't!!
Really leaving this time.
Early Out
05-09-2008, 10:53 PM
Just confirmed my own theory. If I hit test.shtml via the IP address on my server, it doesn't work. When I use my actual domain name, it works fine.
If you just moved to BH, wait for DNS propagation, and it will work without a hitch! :)
Kudzu
05-10-2008, 06:37 AM
Just confirmed my own theory. If I hit test.shtml via the IP address on my server, it doesn't work. When I use my actual domain name, it works fine.
I was thinking about it after I went to bed and that was the one common thing between here and the previous host. After dumping all my files it was all that was left!!
I was going to try the same thing on my existing account. But I think you answered it. Where is the pat-on-the-back icon??
Now I wish I could reach those 3 guys in tech support that were so quick to pass me off. I guess I just need to upload the might page again and transfer the DNS numbers. Thanks again.
Kudzu
05-13-2008, 07:01 AM
Just for anyone else that may search and find this thread.
Early Out was on the money. After writing the HelpDesk and explaining what we found I got a detailed answer (finally) explaining why the SSI call out was not working. Why they couldn't have told me that when I first asked I don't know
I went ahead and change the DNS over and everything on my site works perfectly now. Just as it did on the the previous host.
Thanks for the Help Early Out!
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.