Welcome to WebmasterWorld Guest from 54.167.194.59

Forum Moderators: incrediBILL

Message Too Old, No Replies

server side includes on html page?

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

New User

10+ Year Member

joined:Apr 9, 2003
posts:39
votes: 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
11:38 am on July 18, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 5, 2002
posts:1510
votes: 0


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

Chris

11:44 am on July 18, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Feb 5, 2002
posts:333
votes: 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.
11:58 am on July 18, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:May 11, 2003
posts:172
votes: 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.

12:02 pm on July 18, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Feb 5, 2002
posts:333
votes: 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

12:04 pm on July 18, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Apr 4, 2001
posts:224
votes: 0


You just need to edit the .htaccess file to allow it to read an html file as an shtml file.
12:56 pm on July 18, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Mar 25, 2002
posts:292
votes: 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!