Gossamer Forum
Home : General : Perl Programming :

.html files read as as .shtml pages?

Quote Reply
.html files read as as .shtml pages?
Hi. Could anyone direct me as to what I would need in .htaccess to make .html files read as .shtml? I had a search on Google.com, but I wasn't really sure what to search for, so i didn't find much Frown

Any help would be much appreciated Smile

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: .html files read as as .shtml pages? In reply to
Search apache.org for for "ssi"

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: .html files read as as .shtml pages? In reply to
Try adding this to the top of your .htaccess file:

Options +Includes
AddHandler server-parsed .html

... worked for me Smile

All the best
Shaun

Quote Reply
Re: .html files read as as .shtml pages? In reply to
Thanks. I got it working :)

Another question please....

Do you (or anyone) know of a Perl module that will create .zip files on a UNIx based server? I looked at perldoc.com, but all they had was info on MIME::Decoder::Gzip64; , which didn't look like it did what i wanted :(

Anyone got any suggestion's?

Thanks

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: .html files read as as .shtml pages? In reply to
It is possible that this is disabled at root level on a shared server.

(I sent you a pm)

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: .html files read as as .shtml pages? In reply to
GZIP and TAR are unix/linux compression tools

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: .html files read as as .shtml pages? In reply to
Oh, so I would have to make it as a .tar.gz file which they could download and open with WinZip or suchlike?

Thanks

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: .html files read as as .shtml pages? In reply to
Yes, Winzip supports TAR and TAR.GZ

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com