tokernel/toKernel.1/master/.htaccess - Htaccess File

tokernel/toKernel.1/master/.htaccess

#
# toKernel - Universal PHP Framework.
# URL Rewriting configuration file.
#
# This file is part of toKernel.
# 
# toKernel is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# toKernel is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with toKernel. If not, see <http://www.gnu.org/licenses/>.
#
# @category   application
# @package    toKernel
# @subpackage main
# @author     toKernel development team <framework@tokernel.com>
# @copyright  Copyright (c) 2015 toKernel
# @license    http://www.gnu.org/copyleft/gpl.html GNU Public License
# @version    1.0.2
# @link       http://www.tokernel.com
# @since      File available since Release 1.0.0
#
# Please read this note before using this file.
#
# It is possible to get an error at runtime, if the line - 
# 'Options +FollowSymLinks' uncommented. Comment the line listed below if 
# the error occured. Reason - is the some server mod_rewrite configuration.

# Comment this line if an error occurred. Read the note above.
Options +FollowSymLinks

# mod_rewrite in use
RewriteEngine On

# Disable directories browsing, that don't have an index file. 
#Options -Indexes

# There are possible options to configure the 'RewriteBase'.
#
# Option 1. There is a domain name for your website and the website 
#           is placed in 'www' directory (documentroot).
#
#           RewriteBase /
#
# Option 2. There is a domain name for your website and the website 
#           is placed in subdirectory called "mysite"
#
#           RewriteBase /mysite/
#
# Option 3. There is no domain name for your website and the website 
#           is placed in 'www' directory (documentroot).
#
#           RewriteBase /~your_username/
#
# Option 4. There is no domain name for your website and the website 
#           is placed in subdirectory called "mysite"
#
#           RewriteBase /~your_username/mysite/
#
# configured with option 2
RewriteBase /toKernel.1

# Rewrite conditions configuration
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?tokernel_params=$1 [QSA,L]

# Disallow direct access to framework/application core php files.
<FilesMatch ".(class|lib|hook|tpl|addon|module|view).php$">
  Order Allow,Deny
  Deny from all
</FilesMatch>

# Disallow access to framework/application misc files.
<FilesMatch ".(cache|ini|log|lg)$">
  Order Allow,Deny
     Deny from all
</FilesMatch>

# End of file

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache