Re: Questions on compressing web files
Neil Cherry <njc@.uucp> wrote:
> Actually part of the answer was easy but not the second part. I'd
> simply gzip index.html (resultant: index.html.gz) beforehand [...]
You need to include index.html.gz in the DirectoryIndex list.
You may also need to enable content negotiation.
Finally, within your website, refer to files (e.g page.html, image.jpg)
in links without extensions (i.e. "page" or "image") and let Apache find
the appropriate ".html" ".html.gz", "jpg" suffix itself.
Chris
|