-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess
118 lines (87 loc) · 3.34 KB
/
.htaccess
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
##
## trackoer-core httpd config.
##
# http://askapache.com/htaccess/setting-charset-in-htaccess.html
AddDefaultCharset UTF-8
# force all files to be image/gif:
#<FilesMatch "\.(js)$">
# ForceType application/javascript
# AddCharset UTF-8
# AddDefaultCharset UTF-8
#</FilesMatch>
<Files ~ "\.(htm|html|css|js)$">
AddDefaultCharset UTF-8
DefaultLanguage en-GB
</Files>
AddType 'text/javascript; charset=UTF-8' .js
# Deny OR Allow Folder Indexes.
# Since we disable access to PHP files you
# can leave this on without worries.
# OR better yet, create a .htaccess file in
# the dir you want to allow browsing and
# set it to +Indexes
Options -Indexes
Options +FollowSymLinks
# Set the default file for indexes
DirectoryIndex index.php
#<Directory application/assets/>
# Allow from all
#</Directory>
# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
#php_value magic_quotes_gpc 0
#php_value register_globals 0
#php_value session.auto_start 0
php_value arg_separator.input ";&"
# Set this for the moment, NDF 2012-04-28.
# Not compatible with OU-IT hosting.
# Still some <\?= syntax in theme-views (<\?= supported in PHP 5.4 without this
# setting, http://php.net/manual/en/ini.core.php#ini.short-open-tag )
# (Temporary - not supported by OU-IT hosting.)
#php_value short_open_tag 1
#php_value expose_php 0
</IfModule>
<IfModule mod_rewrite.c>
# mod_rewrite rules
RewriteEngine on
# The RewriteBase of the system (if you are using this sytem in a sub-folder).
# RewriteBase /CodeIgniter_1.6.3/
# This will make the site only accessible without the "www."
# (which will keep the subdomain-sensive config file happy)
# If you want the site to be accessed WITH the "www."
# comment-out the following two lines.
#RewriteCond %{HTTP_HOST} ^www\.maltwiki\.org$ [NC]
#RewriteRule ^(.*)$ http://maltwiki.org/$1 [L,R=301]
# If a controler can't be found - then issue a 404 error from PHP
# Error messages (via the "error" plugin)
# ErrorDocument 403 /index.php/403/
# ErrorDocument 404 /index.php/404/
# ErrorDocument 500 /index.php/500/
# Deny any people (or bots) from the following sites: (to stop spam comments)
# RewriteCond %{HTTP_REFERER} nienschanz\.ru [NC,OR]
# RewriteCond %{HTTP_REFERER} porn\.com
# RewriteRule .* - [F]
# Note: if you are having trouble from a certain URL just
# add it above to forbide all visitors from that site.
# You can also uncomment this if you know the IP:
# Deny from 192.168.1.1
# If the file is NOT the index.php file
#RewriteCond %{REQUEST_FILENAME} !index.php
# Hide all PHP files so none can be accessed by HTTP
#RewriteRule (.*)\.php$ index.php/$1
#ou-specific.
# Map CSS/ graphic/ Javascript directories.
RewriteRule ^(assets|engines)(/.*)$ application/$1$2 [QSA,L]
RewriteRule ^(public|site|capret)(/.*)$ application/assets/$1$2 [QSA,L]
# 'Redirect' for B2S archive tests.
RewriteRule ^(b2s)(/.*)/$ $1$2/index.html [QSA,L]
#ou-specific ends.
# If the file/dir is NOT real go to index
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>
# If Mod_rewrite is NOT installed go to index.php
<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>