Súbor: [Platon] / Metafox / .htaccess (stiahnutie)
Revízia 1.3, Thu Jan 9 10:52:11 2014 UTC (10 years, 2 months ago) by igor
Zmeny od 1.2: +12 -0 [lines]
added automatic rewrite rules for directories which exists
|
#
# Metafox - enterprise content management system
#
# .htaccess - rules for new URL
# ____________________________________________________________
#
# Developed by Igor Mino <igor@platon.sk>
# Copyright (c) 2001-2012 Platon Group, http://platon.sk/
# All rights reserved.
#
# See README file for more information about this software.
# See COPYING file for license information.
#
# Download the latest version from
# http://opensource.platon.sk/projects/Metafox/
#
RewriteEngine on
RewriteRule (^rss2.xml$) ?ezin_template_key=rss2 [L]
RewriteRule (^sitemap.xml$) ?ezin_template_key=sitemap [L]
RewriteRule (^(admin|libpub|themes|upload)/.*) $1 [L]
RewriteRule (^[a-zA-Z]*\.php.*) rewrite.php?link=$1&%{QUERY_STRING} [L]
# If the request is for a valid directory
RewriteCond %{REQUEST_FILENAME} -d [OR]
# If the request is for a valid file
RewriteCond %{REQUEST_FILENAME} -f [OR]
# If the request is for a valid link
RewriteCond %{REQUEST_FILENAME} -l
## don't do anything
RewriteRule ^ - [L]
RewriteRule (.*) rewrite.php?link=$1&%{QUERY_STRING}
Platon Group <platon@platon.sk> http://platon.sk/
|