spotman/betakiller/master/.default.htaccess - Htaccess File

spotman/betakiller/master/.default.htaccess

# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /

# Protect hidden files from being viewed
<Files .*>
  Order Deny,Allow
  Deny From All
</Files>

# Add trailing slash to virtual files and paths
#RewriteCond     %{REQUEST_FILENAME}   !-f
#RewriteCond     %{REQUEST_FILENAME}   !-d
#RewriteCond     %{REQUEST_URI}        !(.*)/$
#RewriteCond     %{REQUEST_URI}        !(.)
#RewriteRule     ^(.*)$                $1/         [R=301,L,QSA]

# Remove trailing slash from virtual files and paths
RewriteCond     %{REQUEST_URI}        (.*)/$
RewriteCond     %{REQUEST_FILENAME}   !(admin.*)
RewriteCond     %{REQUEST_FILENAME}   !-f
RewriteCond     %{REQUEST_FILENAME}   !-d
RewriteRule     ^(.*)/$               $1         [R=301,L,QSA]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]

php_flag "output_buffering" off

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache