Created
December 23, 2015 04:41
-
-
Save bzerangue/ad19daf882d78cdec508 to your computer and use it in GitHub Desktop.
Bolt CMS .htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the default handler. | |
DirectoryIndex index.php index.html index.htm | |
# Prevent directory listing | |
Options -Indexes | |
# Make sure MultiViews is disabled if available. | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
<FilesMatch "\.(yml|db|twig|md)$"> | |
<IfModule mod_authz_core.c> | |
Require all denied | |
</IfModule> | |
<IfModule !mod_authz_core.c> | |
Order deny,allow | |
Deny from all | |
</IfModule> | |
</FilesMatch> | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteRule cache/ - [F] | |
# Some servers require the RewriteBase to be set. If so, set to the correct folder. | |
# RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !=/favicon.ico | |
RewriteRule ^ ./index.php [L] | |
</IfModule> | |
# set the correct mime type for woff2 font type | |
# ============================================= | |
# if you don't set your own mimetypes or you aren't using | |
# HTML5 Boilerplate Server Configs https://github.com/h5bp/server-configs-apache | |
# then you can uncomment (delete the hash/pound/octothorpe/number symbol) | |
# the section below: | |
#<IfModule mod_mime.c> | |
# AddType application/font-woff2 woff2 | |
#</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment