Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Tuesday, January 23, 2018

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

Revision 1.6, Tue Jan 20 15:20:16 2015 UTC (3 years ago) by igor


Changes since 1.5: +1 -0 lines

implement admin API for custom applications,
added cleaning cache in debug level 10,
added function array_insert into library Platon

#
# 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
RewriteBase /

RewriteRule (^rss2.xml$) ?ezin_template_key=rss2 [L]
RewriteRule (^sitemap.xml$) ?ezin_template_key=sitemap [L]
RewriteRule (^admin/app/.*) admin/application.php?link=$1&%{QUERY_STRING} [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}

#
# For nginx (not a complete rewrite):
#
# rewrite ^/rss2.xml$    /?ezin_template_key=rss2     last;
# rewrite ^/sitemap.xml$ /?ezin_template_key=sitemap  last;
# rewrite ^/admin/                        /admin/     break;
# rewrite ^/libpub/                       /libpub/    break;
# rewrite /(^(admin|libpub|themes|upload)/.*) /$1     last;
# rewrite /(.*) /rewrite.php?link=$1&$args            last;
#


Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top