Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (35 sloc) 1.52 KB
# ----------------------------------------------------------------------------------------
# Scavix Web Development Framework
#
# Copyright (c) since 2012 Scavix Software Ltd. & Co. KG
#
# This library is free software; you can redistribute it
# and/or modify it under the terms of the GNU Lesser General
# Public License as published by the Free Software Foundation;
# either version 3 of the License, or (at your option) any
# later version.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library. If not, see <http://www.gnu.org/licenses/>
#
# @author Scavix Software Ltd. & Co. KG http://www.scavix.com <info@scavix.com>
# @copyright since 2012 Scavix Software Ltd. & Co. KG
# @license http://www.opensource.org/licenses/lgpl-license.php LGPL
# ----------------------------------------------------------------------------------------
<IfModule mod_rewrite.c>
RewriteEngine On
# redirect NoCache files to the real ones
SetEnv WDF_FEATURES_NOCACHE on
RewriteRule (.*)/nc([0-9]+)/(.*) $1/$3?_nc=$2 [L,QSA]
# redirect inexistant requests to index.php
SetEnv WDF_FEATURES_REWRITE on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !index.php
RewriteRule (.*) index.php?wdf_route=$1 [L,QSA]
</IfModule>