Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, April 19, 2024

File: [Platon] / Metafox / .htaccess (download)

Revision 1.3, Thu Jan 9 10:52:11 2014 UTC (10 years, 3 months ago) by igor

Changes since 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.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top