homepage Welcome to WebmasterWorld Guest from 54.197.94.241
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
server side includes on html page?
danlott




msg:577601
 11:35 am on Jul 18, 2003 (gmt 0)

hi all,
i use server side includes for menus etc... but the server this site is to be hosted on wont handle asp pages. do server side includes work in htm pages?
cheers
- D

 

chris_f




msg:577602
 11:38 am on Jul 18, 2003 (gmt 0)

In short ... no. Sorry. I guess that's not what you want to here. I dearn't suggest frames :)

Chris

incywincy




msg:577603
 11:44 am on Jul 18, 2003 (gmt 0)

if you're going to run on apache you can configure it parse .html files for server side includes. this could be a big overhead though if your site has lots of .html pages that don't use ssi.

Wertigon




msg:577604
 11:58 am on Jul 18, 2003 (gmt 0)

I assume you mean SSI as in <!--#INCLUDE virtual="menu.txt"--> and similar, right?

You need to save your pages in .shtml to get them to work. If you're using PHP or ASP you code in the sections you want using those languages instead.

incywincy




msg:577605
 12:02 pm on Jul 18, 2003 (gmt 0)

don't think that's true for apache wertington, you can configure apache to parse any file extension for ssi's, not just files with a .shtml extension.

i have lots of .html files with ssi's

legster




msg:577606
 12:04 pm on Jul 18, 2003 (gmt 0)

You just need to edit the .htaccess file to allow it to read an html file as an shtml file.

quiet_man




msg:577607
 12:56 pm on Jul 18, 2003 (gmt 0)

You just need to edit the .htaccess file to allow it to read an html file as an shtml file.

as described here:

[webmasterworld.com ]

and referenced here too:

[webmasterworld.com ]

Good lucK!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved