![]() |
|
|
|
|
|||||||
| 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!) |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do I make sure my site be able to works with shtml file extensions? Does HostICan support SSI coding for shtml pages?
|
|
#2
|
||||
|
||||
|
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 "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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
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" -->
|
![]() |
| Tags |
| hosting, ssi, usage |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|