brocard/base-app-advanced/master/frontend/web/.htaccess - Htaccess File

brocard/base-app-advanced/master/frontend/web/.htaccess

# ----------------------------------------------------------------------
# ETag removal
# ----------------------------------------------------------------------

# FileETag None is not enough for every server.
<IfModule mod_headers.c>
  Header unset ETag
</IfModule>

# Since we're sending far-future expires, we don't need ETags for
# static content.
#   developer.yahoo.com/performance/rules.html#etags
FileETag None

<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  
  RewriteEngine On

  # If a directory or a file exists, use it directly
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d

  # Otherwise forward it to index.php
  RewriteRule . index.php
</IfModule>

# ----------------------------------------------------------------------
#  Block Accesses to Backup/Source files
# ----------------------------------------------------------------------

<FilesMatch "(\.(bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

# ----------------------------------------------------------------------
# UTF-8 encoding
# ----------------------------------------------------------------------

# Use UTF-8 encoding for anything served text/plain or text/html
AddDefaultCharset utf-8

# Force UTF-8 for a number of file formats
AddCharset utf-8 .atom .css .js .json .rss .vtt .xml

# Do not show you are using PHP
# Note: Move this line to php.ini since it won't work in .htaccess
# php_flag expose_php Off

<IfModule php5_module>
    php_value session.cookie_httponly true
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, static

Comments

Apache