# # Metafox - enterprise content management system # # .htaccess - rules for new URL # ____________________________________________________________ # # Developed by Igor Mino # 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} # # 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; #