-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
36 lines (25 loc) · 1.01 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
RewriteOptions inherit
RewriteEngine on
#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{REQUEST_URI} /img_auth\.php/
RewriteRule ^ - [L]
#RewriteCond %{HTTP_HOST} ^knowledge\.wiki$ [OR]
#RewriteCond %{HTTP_HOST} ^fina-v\.knowledge\.wiki$
## http://www.mediawiki.org/wiki/Manual:Short_URL/Apache
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
## RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L]
RewriteRule ^(?:(?!rest.php/).)*$ %{DOCUMENT_ROOT}/index.php [L]
RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]
## http://www.mediawiki.org/wiki/Manual:Short_URL/Apache
#<IfModule mod_rewrite.c>
# RewriteEngine on
#
# RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
# RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
# RewriteRule ^(?:(?!rest.php/).)*$ %{DOCUMENT_ROOT}/index.php [L]
# RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]
#</IfModule>
RedirectMatch 404 /\.git
RedirectMatch 404 secrets.env