> --
>
> You received this message because you are subscribed to the Google Groups
> "Make the Web Faster" group.
> To post to this group, send email to make-the-...@googlegroups.com.
> To unsubscribe from this group, send email to
> make-the-web-fa...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/make-the-web-faster?hl=en.
>
>
>
--
Sent from my mobile device
Richard Rabbat | Product Manager | Google, Inc.
E: rab...@google.com | M: +1-650-714-7618 | Google Voice: +1-617-213-0819
Just make sure the file is named .htaccess (with the period at the
beginning, iirc windows has problems creating names that start with
that, but you can upload and rename it if you're using a third party
utility)
# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
The main .htaccess file lives in top level of your domain.
Also, .htaccess is for use with Apache, so if the Windows server
you're on is running IIS, you'll need to find an alternative (if there
is one).
if you have access to the Apache configuration file http.conf (usually
located at /etc/httpd/conf/httpd.conf) you can enable enable gzip by
uncommenting the line:
LoadModule deflate_module modules/mod_deflate.so
and then turn it on with the .htaccess file.
This is the htaccess code for gzip that Magento (http://
magentocommerce.com) uses (I'm not affiliated with them, just use
their product). It's all nice and commented so i thought I'd copy/
paste:
<IfModule mod_deflate.c>
############################################
## enable apache served files compression
## http://developer.yahoo.com/performance/rules.html#gzip
# Insert filter on all content
###SetOutputFilter DEFLATE
# Insert filter on selected content types only
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/
css text/javascript
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</IfModule>
On Dec 21, 10:18 pm, Edinburgh Hostels
<reservati...@edinburghhostels.com> wrote:
> Johannes I have thrown an .htaccess file onto the server and I did get an
> error message. I have also emailed by ISP and asked them to enable Gzip on
> the Windows servers they are hosting my site on. I picked up the following
> code (see below) for the .htaccess file - is this correct? I have put this
> code on the .Htaccess file but still get the error. I am presuming I will
> stop getting the errors if the ISP activates Gzip ?. If I then use 7zip
> to zip all the html files so that I have an index.htm and an index.htm.gz in
> the same directory, is that it or is there still more to do?. Just
> wondering where does the htaccess file live?
>
> Thanks for your help so far
>
> # Compress some text file types
>
> AddOutputFilterByType DEFLATE text/html text/css text/xml
> application/x-javascript
>
> # Deactivate compression for buggy browsers
>
> BrowserMatch ^Mozilla/4 gzip-only-text/html
>
> BrowserMatch ^Mozilla/4\.0[678] no-gzip
>
> BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
>
> On Mon, Dec 21, 2009 at 10:44 AM, Johannes Manhave <dran...@gmail.com>wrote:
>
> > You can also check whether .htaccess support is enabled by tossing a
> > .htaccess file (with anything in it, doesn't need to be correct) into
> > a directory and trying to access it. if you have support and
> > gobbledygook in the file, you should get an error message. if nothing
> > happens, then you don't have it enabled.
>
> > Just make sure the file is named .htaccess (with the period at the
> > beginning, iirc windows has problems creating names that start with
> > that, but you can upload and rename it if you're using a third party
> > utility)
>
> > On Mon, Dec 21, 2009 at 9:04 AM, Richard Rabbat <rab...@google.com> wrote:
> > > With situations such as this, you should ask your web hosting company
> > > to enabme gzip for your website. If they don't offer the option, other
> > > hosting companies do.
>
> > > On 12/20/09, John Hunter <jamb...@gmail.com> wrote:
> > >> Could someone please help me. I need to understand how I can enable
> > >> gzip compression on my website pages? I checked Google Webmaster tools
> > >> and some of my pages could be reduced by up to 68k. I have read about
> > >> adding some code to the htaccess file and lots of other solutions such
> > >> as changing the files to PHP and adding code but I am starting to get
> > >> confused. I use a web host (www.easyspace.com) who are not currently
> > >> riunning Gzip on the server. My understanding is that I don't have
> > >> access to the HTaccess file as this is a hosted service. Could
> > >> someone please take me through the various steps that I need to do to
> > >> activate gzip. I am looking for the most straightforward solution.
> > >> Also does my web hosting service provider need to activate anything on
> > >> their end or is it all me?.
>
> > >> --
>
> > >> You received this message because you are subscribed to the Google
> > Groups
> > >> "Make the Web Faster" group.
> > >> To post to this group, send email to
> > make-the-...@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> make-the-web-fa...@googlegroups.com<make-the-web-faster%2Bunsu...@googlegroups.com>
> > .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/make-the-web-faster?hl=en.
>
> > > --
> > > Sent from my mobile device
>
> > > Richard Rabbat | Product Manager | Google, Inc.
> > > E: rab...@google.com | M: +1-650-714-7618 | Google Voice:
> > +1-617-213-0819
>
> > > --
>
> > > You received this message because you are subscribed to the Google Groups
> > "Make the Web Faster" group.
> > > To post to this group, send email to
> > make-the-...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > make-the-web-fa...@googlegroups.com<make-the-web-faster%2Bunsu...@googlegroups.com>
> > .
> > > For more options, visit this group at
> >http://groups.google.com/group/make-the-web-faster?hl=en.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Make the Web Faster" group.
> > To post to this group, send email to make-the-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > make-the-web-fa...@googlegroups.com<make-the-web-faster%2Bunsu...@googlegroups.com>