Yup, but you might want to make sure and wait for another member to confirm this as I am not very confident. Better yet, why don't you ask the iPage guys because they can give you help better...
If you are viewing the page offline, that is probably the problem. An SSI file must be on a server that understands SSI instructions. Many people do not have this installed on their personal computers. Upload the file to your host server online (presuming they do support SSI) and view the page that way..
If you are viewing the file online, then your host may not support SSI..
Also, there should be a space before the ending comment areas....
<!#include file="head.shtml" >..
When you view the document using a web browser are you:.
- looking at the document file on your hard drive, or.
- looking at your file after it has been uploaded to your web site?..
This is what I'm doing. I'm saving the index.shtml file to a maintenance folder(locally on my winXP machine) where I keep all of my webfiles as I build/update my shtml. The first set of code I posted above works as index.shtml when I save it as index.shtml using notepad. I can right click on index.shtml, choose "open with" and then select "IE", and the page shows up just fine. The second set of code does not..
Screenshot shows what the first set of code looks like as it is displayed in IE. Which is how it should look..
Screenshot shows what the second set of code I posted above looks like in IE. Which plainly shows what I am describing..
One code will work, the other will not. And I'm unsure if it's the code, or notepad that may be messing me up. I dont know how to explain it any better than this...
When you save in notepad you save it ias .txt even though you changed the extension. so in all actuality it looks ike this index.shtml.txt and since windows knows this extension all you see is .shtml.
So go to windows explorer and click on tools and then folder options. then teh view tab you should see something that says "hide file extensinos for known type" make sure this is.
Then you will go bak into exporer and find the file in question. my bet is you will see the .txt. if not then you cannot run shtml files on your computer as you need a webserver to run those. sure you can open it up in IE and display it, but the includes are not happening..
Try that and let us know...
If you'll look back at kdjoergensen's post above, he suggests that I save as "filetype" rather than ".txt".
The box "hide file extensinos for known types" is unchecked, and the filename is .shtml, not .shtml.txt.
I'm not worried about the includes, but the code should at least format in the IE window as a webpage. The first set of code does, as per my screenshot...why doesnt the second?.
Can anyone else take that second code I posted and get it to display in IE as it shown in "correct.jpg" above?..
I know what KD said, notepad is the problem as it is saving it as txt. trust me. if you run the same code from the code that works and the only thing you did was save it by using notepad then it is a text file. IE will parse html.
The file ends in a html extension and seeing as it displayed the contents just as it sits then it is a text file. trust me, you opened a text file..
Even if it was a shtml extension it would still parse the html inside that file. but seeing as it didn't the file can only be .txt..