summaryrefslogtreecommitdiffstats
path: root/.htaccess
blob: f42f718c6e2a125d44063fa69462c29f64b69ee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
# Apache configuration rules                 [Thomas Lange <code@nerdmind.de>] #
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
#                                                                              #
# This file contains rewrite rules for Apache. It's recommended to include the #
# rules directly into your Apache configuration for a better performance. Also #
# disable the AllowOverride directive within your Apache virtualhost (if it is #
# not already globally disabled for performance and security reasons both).    #
#                                                                              #
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#

#===============================================================================
# Enable RewriteEngine
#===============================================================================
RewriteEngine On

#===============================================================================
# ErrorDocument handler
#===============================================================================
ErrorDocument 403 /403.php
ErrorDocument 404 /404.php

#===============================================================================
# Forbidden directories
#===============================================================================
RewriteRule ^(core|theme/([^/]+)/(html|lang)/) - [F]

#===============================================================================
# Main rules
#===============================================================================
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php [L]