Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > HTML / Design

HTML / Design Are you a designer? Or just trying to become one? Great! You'll be able to talk about layouts, and HTML code to help your fellow designers, so everyone can work together to master the tricks of the trade. (Maybe even some JavaScript too!)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-05-2009, 08:06 AM
Celt Celt is offline
Junior Member
 
Join Date: Mar 2009
Posts: 3
Default hosting SSI usage

How do I make sure my site be able to works with shtml file extensions? Does HostICan support SSI coding for shtml pages?
Reply With Quote
  #2  
Old 05-05-2009, 08:36 AM
hood's Avatar
hood hood is offline
Senior Member
 
Join Date: Jan 2009
Posts: 107
Default Re: hosting SSI usage

These lines will give you guarantee if any pages created on your site with the shtml extension will be able to use SSI coding.
Code:
AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes
Thhese lines will gurantee any pages you create on your site with the shtml extension will be able to use SSI coding.
"AddType text/html .shtml" -> pages with an extension of shtml are valid files.
"AddHandler server-parsed .shtml" -> adds a "handler" which is the actual SSI stuff.
"Options Indexes FollowSymLinks Includes" -> makes it all mesh together on the server.
Reply With Quote
  #3  
Old 05-06-2009, 01:55 PM
marci marci is offline
Senior Member
 
Join Date: Jan 2009
Location: EU
Posts: 117
Default Re: hosting SSI usage

I found a helpful website on the web for generation of .htaccess. Will be very useful for someone like me.
htaccess Generator

You can generate a .htaccess file for rewrite rules, redirects, Custom Error Documents, Rewrite Condition, Protect System Files, File Cache Control, Additional Mime Types, File Extensions, Map Folder To Script, Default Page & Authentication.
Reply With Quote
  #4  
Old 05-20-2009, 11:45 AM
cech's Avatar
cech cech is offline
Member
 
Join Date: Feb 2009
Posts: 83
Default Re: hosting SSI usage

I think html files will not run server side includes, but .shtml files can do that. To allow on .html you need to add a new handler for HTML. To allow SSI, set the handler as 'server-parsed' and the extension as .html and server will read the .html. Here's the format of the SSI that will include the text found in the file "included.html:
HTML Code:
<!--#include file="included.html" -->
Reply With Quote
Reply

Tags
hosting, ssi, usage

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:09 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.