caloriscz/caloris10/master/caloris/.htaccess - Htaccess File

caloriscz/caloris10/master/caloris/.htaccess

# -----
#
#  Front entrance to the Caloris CMS.

#  @author Petr Karásek <caloris@caloris.cz>
#  @copyright 2006-2014 Petr Karásek (http://caloris.cz)
#  @license http://www.gnu.org/licenses/gpl-3.0.html GNU GPL3
#
# -----

RewriteEngine On

RewriteBase /

<Files ~ ".(xml)$">
   deny from all
</Files>

<Files ~ "public.(xml)$">
   allow from all
</Files>

# Redirect for administrator
RewriteRule ^administrator/$   /administrator/index.html [R]
RewriteRule ^administrator$   /administrator/index.html [R]

# HTML templates for modules
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9-]+)/(.*).html$  index.php?rewritetype=2&module_name=$1&file_name=$2 [L,QSA]

# HTML templates for www
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9-]+).html$ index.php?rewritetype=1&file_name=$1 [L,QSA]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache