Htaccess File


# 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

<FilesMatch ".(yml|db|twig|md)$">
  <IfModule mod_authz_core.c>
    Require all denied
  <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all

<IfModule mod_rewrite.c>
  RewriteEngine on

  RewriteRule cache/ - [F]
  RewriteRule ^(?!web/)(.*) web/$1

  # Some servers require the RewriteBase to be set. If so, set to the correct folder.
  # RewriteBase /web/

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule ^ web/index.php [L,NC]

# 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
# then you can uncomment (delete the hash/pound/octothorpe/number symbol) the section below:

#<IfModule mod_mime.c>
#  AddType application/font-woff2    woff2
Exit mobile version