sqrt-pro/Framework/master/public_html/.htaccess - Htaccess File

sqrt-pro/Framework/master/public_html/.htaccess

AddDefaultCharset utf-8

php_flag magic_quotes_gpc off
php_flag session_autostart off

# Routing
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /

    # CSS & JS Versioning Routing
    # style.123.css equal to style.css
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+).([0-9]+).(js|css)$ /$1.$3 [L]

    # General Routing
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php
</IfModule>

# GZIP
<IfModule mod_deflate.c>
    <IfModule mod_headers.c>
        Header append Vary Accept-Encoding
    </IfModule>
    AddOutputFilterByType DEFLATE text/html text/css text/plain application/json
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
    AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
    AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, REQUEST_FILENAME

Comments

Apache