.htaccess mod_gzip |
This topic is about .htaccess mod_gzip, the author, Shishir Gupta, wrote about: Just to clarify, I know pretty much nothing about .htaccess code. My question is, when I have this code in my .htaccess file, Code: Order deny,allow ... To read more just scroll down
![]() ![]() |
.htaccess mod_gzip |
Yesterday, 02:41 AM
Post
#1
|
|
|
Advanced Member ![]() ![]() ![]() Group: Administrators Posts: 1,365 Joined: 27-May 08 Member No.: 4 |
Just to clarify, I know pretty much nothing about .htaccess code. My question is, when I have this code in my .htaccess file,
Code: Order deny,allow ExpiresActive on ExpiresDefault A15768000 RewriteEngine on RewriteCond %{HTTP_USER_AGENT} Wget [OR] RewriteCond %{HTTP_USER_AGENT} CherryPickerSE [OR] RewriteCond %{HTTP_USER_AGENT} CherryPickerElite [OR] RewriteCond %{HTTP_USER_AGENT} EmailCollector [OR] RewriteCond %{HTTP_USER_AGENT} EmailSiphon [OR] RewriteCond %{HTTP_USER_AGENT} EmailWolf [OR] RewriteCond %{HTTP_USER_AGENT} ExtractorPro RewriteRule ^.*$ deny.html [L] DirectoryIndex index.html index.htm index.phpeverything works peachy keen. When I add this: Code: <IfModule mod_gzip.c> mod_gzip_on Yes mod_gzip_static_suffix .gz AddEncoding gzip .gz # Save temporary work files [Yes, No] mod_gzip_keep_workfiles No mod_gzip_maximum_file_size 500000 mod_gzip_maximum_inmem_size 60000 mod_gzip_handle_methods GET POST ############### ### filters ### ############### mod_gzip_item_exclude reqheader "User-agent: Mozilla/4.0[678]" # HTML, CGI scripts, PHP mod_gzip_item_include file .html$ mod_gzip_item_include file .php$ mod_gzip_item_include file .pl$ mod_gzip_item_include mime ^text/html$ mod_gzip_item_include mime ^text/plain$ mod_gzip_item_include mime ^httpd/unix-directory$I get a 500 Internal Server Error. Where exactly did this code go wrong? |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 6th January 2009 - 11:12 AM |
| Emter your e-mail to subscribe by Feedblitz: |
|
|