boak/lenka/master/.htaccess - Htaccess File

boak/lenka/master/.htaccess

# Don't allow directory indexes by default
Options -Indexes

<IfModule mod_rewrite.c>
  # Remove the pesky index.php from URIs.
  # Technique adaptined from example at
  # http://www.anmsaiful.net/blog/php/remove-codeigniter-index-php.html
  RewriteEngine on
  
  # Forbid browsing of the following directories/files
  #  system/        - CodeIgniter directory
  #  application/cache  - Cache directory
  #  externals/      - 3rd party stuff
  #  .git*        - Any git files/folders
  RedirectMatch 403 ^/(system|application/cache|externals|.git).*$
  
  # Redirect all requests that don't go to an actual file or folder to
  # the CodeIgniter index.php
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  
  RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin

ErrorDocument 404 /index.php
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache