sksree/Jorani_new/master/.htaccess - Htaccess File

sksree/Jorani_new/master/.htaccess

SetEnv ALLOW_OVERWRITE On
SetEnv HTTP_MOD_GZIP Off

<IfModule mod_rewrite.c>
    Options +FollowSymLinks

    RewriteEngine On
    # Tell PHP that the mod_rewrite module is ENABLED.
    SetEnv HTTP_MOD_REWRITE On

    #Remove index.php from URL
    RewriteCond $1 !^(index.php|(.*).images|css|js|robots.txt|favicon.ico)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ ./index.php?$1 [L,QSA]
</IfModule>
 
<IfModule !mod_rewrite.c> 
    # Without mod_rewrite, route 404's to the front controller
    SetEnv HTTP_MOD_REWRITE Off
    ErrorDocument 404 "Error : Module rewrite is not available check your system with requirements.php"
 </IfModule>

<IfModule mod_expires.c>
    ExpiresActive on
    ExpiresDefault "access plus 1 month"
</IfModule>

<IfModule mod_deflate.c>
    SetEnv HTTP_MOD_GZIP On
</IfModule>
<IfModule !mod_headers.c>
    #On WAMP, Deflate module needs mod_headers, otherwise it cause an error 500
    SetEnv HTTP_MOD_GZIP Off
</IfModule>

<IfModule mod_headers.c>
    <IfModule mod_deflate.c>
        SetOutputFilter DEFLATE
        AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript
    </IfModule>
</IfModule>

<ifModule mod_gzip.c>
    #Enable compression if available
    SetEnv HTTP_MOD_GZIP On
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file .(html?|txt|css|js|php)$
    mod_gzip_item_include handler ^cgi-script$
    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.*
</ifModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, REQUEST_FILENAME

Comments

Apache