kkuhrman/AblePolecat-Dev/master/usr/share/local/.htaccess - Htaccess File

kkuhrman/AblePolecat-Dev/master/usr/share/local/.htaccess

##
# @file      AblePolecat-Dev/usr/share/local/.htaccess
# @brief     Example Apache host access settings.
# @author    Karl Kuhrman
# @copyright [BDS II License] (https://github.com/kkuhrman/AblePolecat/blob/master/LICENSE.md)
#

#
# Set the default handler.
#
DirectoryIndex index.php
 
#
# Override default Apache handlers.
#
Options -Indexes
Options +FollowSymLinks
Options +MultiViews

<IfModule mod_rewrite.c>
  RewriteEngine on
  
  #
  # Block access to "hidden" directories whose names begin with a period.
  # (This rule exists mainly to prevent access to Git files).
  #
  RewriteRule "(^|/)." - [F]
  
  #
  # If using an alias to access the site (e.g. http://localhost/polecat), 
  # define the base below relative to the server document root. 
  # (e.g. RewriteBase /polecat)
  #
  # RewriteBase /AblePolecat-Dev
  
  #
  # Pass all requests not referring directly to files in the file system to
  # index.php.
  #
  RewriteCond %{REQUEST_FILENAME} !(.*).(js|ico|gif|jpg|png|css|eot|ttf|woff|html)$
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule ^ index.php [L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache