VanLUG Email Archive

Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

VanLUG Mailing List
Re: Apache URL rewriting and compression

New Message Reply About this list Date view Thread view Subject view Author view

Mike Bell (athasian@altavista.net)
Sat, 20 Jan 2001 18:57:42 -0800


On Sat, Jan 20, 2001 at 04:49:52PM -0800, Shane Wegner wrote:
> Hi all,
>
> I'm having some trouble configuring Apache and PHP do do
> what I want here. It's primarily a rewriting problem in
> that I want all requests to an *.html to go to *.html.gz,
> Apache to uncompress the file using gunzip or zcat and
> process it with PHP before output to the browser.
> Basically I want to gzip my .html files and not have to
> change the <a href> tags which point to them.
>
> It looks almost like mod_rewrite and AddHandler could
> accomplish this but I can't figure out how, after
> decompression, to get PHP to act as a handler on the
> output of gunzip.
>
> If anyone knows how this can be done either via mod_rewrite
> or the Apache module API, I would appreciate hearing from
> you.

I'm fairly certain you should be able to do that without PHP at all. Because
gz is an encoding, not a mime-type, it should work just like index.html.ja
and be accessable via index.html. I'd recheck the apache docs.

--
This message came to you via the Vancouver Linux Users Group mailing list.
For unsubscription instructions do not email the list, but rather send mail
to <vanlug-request@gweep.bc.ca>.


New Message Reply About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b3 on Tue 03 Jul 2001 - 18:31:59