Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
.shtml and SSIs - want to use .html
Old 05-09-2007, 01:34 PM .shtml and SSIs - want to use .html
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
I am trying to convert the pages of a site to use SSIs. Currently, I have to use .shtml for this to work. I have been reading that you can have the server configured to automatically parse all .html pages. This way, you dont have to rename all your files and links to .shtml. We called our hosting company, and the guy we talked to didn't seem to have a clue about this.
How can I get them (or is there a way I can do it) to configure the server to allow SSIs without having to rename everything to .shtml?
We are on a Unix server running Apache.
Thanks!!!
angele803 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-09-2007, 01:51 PM Re: .shtml and SSIs - want to use .html
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
in your .htaccess file add

AddHandler server-parsed .html .htm
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-09-2007, 02:15 PM Re: .shtml and SSIs - want to use .html
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
Thanks Chris
Do I have to put it in a certain place in the .htaccess file? I added the line, but it still isnt working.
angele803 is offline
Reply With Quote
View Public Profile
 
Old 05-09-2007, 02:27 PM Re: .shtml and SSIs - want to use .html
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
If there is existing addhandler lines you can keep them together but it shouldn't really matter.

it may be worth trying

Options +Includes
AddType text/html .html .htm
AddHandler server-parsed .html .htm

just to make sure the options are merged with the existing ones from httpd.conf
Provided that the hosting co haven't disabled htaccess overrides of course.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-09-2007, 02:36 PM Re: .shtml and SSIs - want to use .html
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
okay, I am going to try that. I think I might have to try to talk to my hosting company again.
Thanks so much for your help!
angele803 is offline
Reply With Quote
View Public Profile
 
Old 05-09-2007, 05:31 PM Re: .shtml and SSIs - want to use .html
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
You're a genius Chris. I got it to work. Thanks so much!
angele803 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to .shtml and SSIs - want to use .html
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.34883 seconds with 12 queries