.htaccess file question

Discussion in 'Apache' started by fhahnel, Oct 23, 2009.

  1. #1
    I'm trying to "optimize" my .htaccess file.

    Currently if I run this page (http://www.freertool.com/ProductsNAAMSBody.html) in Firebug in Firebox, it tells me to 'enable gzip compression' and 'enable browser caching'. I believe I have done this, but it doesn't seem to change the results I'm getting.

    Can anyone help me?

    ***here's the text in the .htaccess file*********

    #####################################################
    # CONFIGURE media caching
    #
    # cache images and flash content for one month
    <FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|html|htm)$">
    Header set Cache-Control "max-age=2592000"
    </FilesMatch>
    # cache text, css, and javascript files for one year
    <FilesMatch ".(js|css|pdf|txt)$">
    Header set Cache-Control "max-age=29030400"
    </FilesMatch>
    #
    #####################################################
    #redirect old Index.htm files
    Options All -Indexes
    redirect /Index.htm http://www.freertool.com/index.html
    redirect http/freertool.com/Index.htm http://www.freertool.com/index.html
    Header set X-UA-Compatible "IE=EmulateIE7"
    # BEGIN GZIP COMPRESSION
    <ifmodule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
    </ifmodule>
    # END GZIP
    # enable basic rewriting
    RewriteEngine on
     
    fhahnel, Oct 23, 2009 IP
  2. fhahnel

    fhahnel Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Help! Someone look at this?


     
    fhahnel, Nov 4, 2009 IP
  3. smcblogger

    smcblogger Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Have you tried looking at your site and seeing what the headers are showing? I use Firefox and Live HTTP Headers. Have you tried contacting your webhosting company? Maybe they have something disabling compression (although that makes no sense)? A good way to troubleshoot is to remove all new fixes (writes) and add them one at a time. Then, check to see if it's working. If that fails, you can try one of your other writes or keep working on the failure. Otherwise, it's difficult to see which part is causing the problem.
     
    smcblogger, Nov 4, 2009 IP