Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: open
The reason for this is i am trying to avoid having to copy and paste amended menus into 15+ static html pages for a new site i'm doing which primarily won't be using any form of ssi (php).
If anyone can shed more light on this situation that would be great.
If you give your files a .shtml extension, you should be able to use regular server-side includes (without using PHP). That would be the best option.
After a bit of thought earlier i will probably need to use php as my administration system is built in this lang however i need to heavily modify it to version 2.
Thanks for your time.
Basically, in your .shtml file include this line:
<!-- #include virtual="/myfile.inc" -->
Where myfile.inc is the name (with full URL) of the file to 'paste' into your HTML. It doesn't have to be called .inc, I just use it so I can distinguish between files on my own server.
I belive that search engines prefer this to PHP, as they consider it to be more stable content. Don't know for sure, and I'm sure for everyone who would agree, someone would disagree.
I use it all the time for exactly what you need, headers, footers and menus.
joined:Sept 29, 2005
I use this kind of functionality all the time in Dreamweaver for a quick, site-wide amendment.
such as menus and metatags for example where this content is repeated however how would this affect SEO compatability.....
Actually, let's consider for a moment - in the case of menus, wouldn't this be a good way to avoid duplicate content penalties?
You would of course have to have hard-coded plain text links for the initial menus, but in the context of SEO, because JS links are ignored it might be an option to consider.
Have got out of it's tree house the bed on the wrong side...
Fallen through that annoying hole in the floor...
Hit every 'bad day' branch on the way down...
Landed in another bed...
Then got out of the wrong side of that one too.
Then trodden in poo on the way to it's campervan...
Been stuck in traffic on the way to the office...
Got out of the wrong side of the campervan...
To find the coffee machine broken.
[edited by: Dabrowski at 10:47 pm (utc) on Dec. 5, 2007]