0x2f8f/Booot/master/.htaccess - Htaccess File

0x2f8f/Booot/master/.htaccess

RewriteEngine on
RewriteBase /

# REWRITE
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,QSA]

# GZIP
AddEncoding gzip .gz
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{HTTP_USER_AGENT} !Safari
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [QSA,L]
<FilesMatch .*.css.gz$>
 ForceType text/css
</FilesMatch>
<FilesMatch .*.js.gz$>
 ForceType application/x-javascript
</FilesMatch>

On Github License

Files

Download PDF of Htaccess file
HTTP_USER_AGENT, REQUEST_FILENAME

Comments

Apache