IPB

Welcome Guest ( Log In | Register )

.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

 
Reply to this topicStart new topic
.htaccess mod_gzip
Shishir Gupta
post 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?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 6th January 2009 - 11:12 AM
Emter your e-mail to subscribe by Feedblitz:
Your post should not contain (unless necessary) any of the following words: rapidshare.com, rapidshare, rapidlibrary, warez, ddl, null, nulled, dgt, scriptmafia, pirated, fake, nude, viagra, warezforum, megaupload, file sharing, rapidshare, megaupload, filefactory, depositfiles, zshare, sendspace, downloading, downloads, films, download films, files, mp3. You may use these: upload, sharing, video games, digital art, script installation, freeware, shareware, login, memberpages, password, free, methods, language, sales, fashion, presentable, downloader, submitter, proxy, web proxy etc. in short form to maintain quality.