benbowler/Open-Ad-Server/master/.htaccess - Htaccess File

benbowler/Open-Ad-Server/master/.htaccess

#***************************************************#
# Rewrite rules                                     #
#***************************************************#

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteRule ^install/install.php$ install/install_rewrite.php [L]

    RewriteRule ^([^/]+)/([^/]+)/([A-Za-z]{1,100}-.*).html$ index.php/$1/$2?param=$3 [QSA,L]
    RewriteRule ^([^/]+)/([A-Za-z]{1,100}-.*).html$ index.php/$1?param=$2 [QSA,L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

#***************************************************#
# Compressing by deflate or gzip                    #
#***************************************************#

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html DEFLATE text/xml image/x-icon text/css text/javascript application/x-javascript
    #DeflateCompressionLevel 9
    #DeflateWindowSize 15
    #DeflateBufferSize 32768
    SetOutputFilter DEFLATE
    BrowserMatch "MSIE [456] " no_gzip dont-vary 
    BrowserMatch "SV1;" !no_gzip !dont-vary 
    BrowserMatch "Opera" !no_gzip !dont-vary
    BrowserMatch "Firefox/[0-3]." gzip-only-text/html
    BrowserMatch "Firefox/3.[1-9]" !gzip-only-text/html
    BrowserMatch "Firefox/3.[1-9]" !no_gzip dont-vary
    BrowserMatch "Chrome/2" gzip-only-text/html
    BrowserMatch "Safari" gzip-only-text/html
    BrowserMatch "Konqueror" gzip-only-text/html
</IfModule>

<IfModule !mod_deflate.c>
    <IfModule mod_gzip.c>
         mod_gzip_on         Yes
         mod_gzip_dechunk    Yes
         mod_gzip_can_negotiate        Yes
         mod_gzip_static_suffix        .gz
         AddEncoding              gzip .gz
   mod_gzip_update_static        No
         mod_gzip_min_http             1000
         mod_gzip_handle_methods       GET POST
   # Filters
             mod_gzip_item_exclude         reqheader  "User-agent: Mozilla/4.0[678]"
             mod_gzip_item_include file      .(html?|txt|css|js|xml)$
             mod_gzip_item_include mime      ^text.*
             mod_gzip_item_include mime      ^application/x-javascript.*
             mod_gzip_item_exclude mime      ^image.*
             mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
   #end Filters
      Transfer-encoding: chunked
     </IfModule>
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, GET, POST, REQUEST_FILENAME, static

Comments

Apache