aboutsummaryrefslogtreecommitdiffstats
path: root/.htaccess
blob: 55c32d30885e51c5e8e9fb4151a8255a25e48d4c (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
# Apache configuration                       [Thomas Lange <code@nerdmind.de>] #
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
#                                                                              #
# This file contains the configuration rules for the Apache HTTP server. It is #
# recommended to include these rules directly into the Apache configuration!   #
#                                                                              #
# Additionally, it's recommended to ensure that the AllowOverride directive is #
# disabled if these rules are included in the Apache configuration. Otherwise, #
# the Apache HTTP server is checking for .htaccess files on every request.     #
#                                                                              #
# AllowOverride None                                                           #
#                                                                              #
# NOTICE: If you decide to include these rules directly into the Apache config #
# and want to set AllowOverride to something other than "None", it might cause #
# trouble with this .htaccess file which might contain rules that are not per- #
# mitted by your custom AllowOverride setting in the server config. You should #
# rename (or delete) this file to prevent Apache from parsing it in that case! #
#                                                                              #
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#

#===============================================================================
# Error pages
#===============================================================================
ErrorDocument 403 /403.php
ErrorDocument 404 /404.php

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

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

#===============================================================================
# Pass requests to index.php
#===============================================================================
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

#===============================================================================
# Redirect from old to new global static dir
#===============================================================================
#Redirect 301 /rsrc/ /static/