Darksat IT Security Forums
July 24, 2017, 02:53:32 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Darksat IT Security Forum
From Firewall Support, AntiVirus Questions, Spyware problems, Linux and Windows Security, Black Hat SEO right down to Website Design and Multimedia
 
  Home Help Search Gallery Links Staff List Login Register  

Adding Gzip compression in Apache using htaccess


Pages: [1]
  Print  
Author Topic: Adding Gzip compression in Apache using htaccess  (Read 945 times)
Darksat
Administrator
Master
*******
Posts: 3303



View Profile WWW
« on: February 23, 2011, 07:15:14 am »


Optimize your website loading time by compressing files into smaller size using htaccess on Apache.

Put this in your directory htaccess file.
Code:
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

Source

http://httpd.apache.org/docs/2.0/mod/mod_deflate.html
Report Spam   Logged

Social Buttons


Pages: [1]
  Print  
 
Jump to:  

Powered by EzPortal
eXTReMe Tracker
Security Forum
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Buy traffic for your forum/website
traffic-masters
Powered by SMF | SMF © 2016, Simple Machines
Page created in 0.078 seconds with 11 queries.