bnowack/backbone-php/master/doc/sample.htaccess - Htaccess File

bnowack/backbone-php/master/doc/sample.htaccess

RewriteEngine On
RewriteBase /

# Hide the project's git directory (if any)
RedirectMatch 404 /.git

# Hide the project's bin directory
RedirectMatch 404 /bin/

# Hide the project's data directory
RedirectMatch 404 /data/

# Hide configuration files
RedirectMatch 404 /config/

# Redirect any other non-file requests to the front controller.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* vendor/bnowack/backbone-php/src/scripts/index.php [L]

# Compress text output
<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/css application/javascript application/json
    <IfModule mod_headers.c>
    Header append Vary User-Agent
    </IfModule>
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4.0[678] no-gzip
    BrowserMatch bMSIE !no-gzip !gzip-only-text/html
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, no-gzip, REQUEST_FILENAME

Comments

Apache