Any one know how to apply gzip to your hosting account

by Find
7 replies
  • SEO
  • |
Just as title described and a bit more on how to increase your page speed. Be mostly appreciated.
#account #apply #gzip #hosting
  • Profile picture of the author HunterSnake
    Originally Posted by Find View Post

    Just as title described and a bit more on how to increase your page speed. Be mostly appreciated.
    Edit your .htaccess file located in your public_html folder to include:

    Code:
    RewriteEngine On
    
    <IfModule mod_deflate.c>
            <FilesMatch "\.(css|js|php)$">
    	SetOutputFilter DEFLATE
    	</FilesMatch>
    </IfModule>
    You can change / add file formats easily enough... notice the bold red area

    Additionally, you can test to make sure that all is working after implementing this change with this tool.
    {{ DiscussionBoard.errors[2355251].message }}
  • Profile picture of the author Jeremy Vanlanda
    Thank you very much HunterSnake!
    {{ DiscussionBoard.errors[2355257].message }}
  • Profile picture of the author Find
    Very cool snake do you preferr deflate over gzip? whats the difference
    {{ DiscussionBoard.errors[2355313].message }}
    • Profile picture of the author HunterSnake
      Originally Posted by Find View Post

      Very cool snake do you preferr deflate over gzip? whats the difference
      GZIP is based on DEFLATE and adds some additional header stuff. In my experience, DEFLATE performs better overall and is more widely supported on shared hosting plans.

      You'll probably find at least one person with a different experience to share. =) Hope this helped!
      {{ DiscussionBoard.errors[2355330].message }}
  • Profile picture of the author Find
    Very cool thank you huntersnake
    {{ DiscussionBoard.errors[2355337].message }}
    • Profile picture of the author HunterSnake
      Originally Posted by Find View Post

      Very cool thank you huntersnake
      No problem. =) Feel free to AIM / ICQ me if you need anything else.
      {{ DiscussionBoard.errors[2355339].message }}
  • Profile picture of the author Find
    will do mate
    {{ DiscussionBoard.errors[2355373].message }}

Trending Topics