|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Mar 2007
2 posts
Gave thanks: 0
Thanked 0 times
|
Using include files
Hey, I'm trying to build a very simple, basic-HTML site on a reseller account, using include files for the header, footer, and rail. Just basic HTML (because that's the extent of my knowledge, alas).
I'm using the standard include format, e.g. (inside brackets): !--#include virtual="/includes/header.txt"-- I've got a test file in the public html folder, and subfolder for includes within that folder. But the includes just aren't showing up. And my coding is correct, because I uploaded these files to a Yahoo hosting account and they worked fine. What's wrong? Am I supposed to turn on some option in the cpanel or WHM to make include files work? I'm stumped (but stumping me doesn't take much ...) Any guidance appreciated. thanks |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Mar 2007
2 posts
Gave thanks: 0
Thanked 0 times
|
thanks Rick
Rick, thank you, when I changed the extension to .shtml, the includes worked. (Why is that necessary on Surpass servers but not in a Yahoo hosting account?)
Now, my follow up question: Is a Web site in which all the pages are .shtml a bad idea? Any detriment in search engine rankings, etc., for those types of pages? thanks |
|
|
|
|
|
#4 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Sep 2004
Hosted on Pass42
279 posts
Gave thanks: 4
Thanked 50 times
|
I'm pretty sure this is a server setting. But from my experience this is how most hosting companies are set up and Yahoo is one of the exceptions. As for search engines I don't think it makes a difference to them. However, you don't need to make all files end with .shtml, just the ones with includes in them.
__________________
|
|
|
|