mountain-labs/massive/master/.htaccess - Htaccess File

mountain-labs/massive/master/.htaccess

# Redirect all Requests to index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php

# Hide .html file extensions
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html

# Deflate the listed filetypes
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

# Redirects to custom error pages
ErrorDocument 400 /views/errors/badrequest.html
ErrorDocument 401 /views/errors/unauthorized.html
ErrorDocument 403 /views/errors/forbidden.html
ErrorDocument 404 /views/errors/notfound.html
ErrorDocument 500 /views/errors/servererror.html

# Prevent automatic indexing by apache
Options -Indexes

On Github License

Files

Download PDF of Htaccess file
DEFLATE, REQUEST_FILENAME

Comments

Apache