-
Notifications
You must be signed in to change notification settings - Fork 3
/
.htaccess
36 lines (34 loc) · 1.24 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
AddDefaultCharset UTF-8
AddType image/webp .webp
Options -Indexes
# set php error reporting to E_ALL & ~E_NOTICE (=32759)
# for PHP 7:
<IfModule mod_php7.c>
php_value error_reporting 32759
php_value default_charset UTF-8
php_value request_order GP
</IfModule>
# for PHP 8 and later:
<IfModule mod_php.c>
php_value error_reporting 32759
php_value default_charset UTF-8
php_value request_order GP
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^zkrss\.php$ index.php?target=rss [QSA,L]
RewriteRule ^zk-feed-reader\.xslt$ controllers/RSS.xslt [QSA,L]
RewriteRule ^ssoLogin\.php$ index.php?target=sso [QSA,L]
RewriteCond %{REQUEST_URI} ^(.*)/tag/([0-9]+)$
RewriteRule .* %1/?action=search&s=byAlbumKey&n=%2 [R=302]
RewriteCond $0 !^\.mdhandler.php/.*$
RewriteRule ^(.+)\.md$ .mdhandler.php?asset=/$1.md [L]
RewriteRule ^zk$ - [R=404,L]
# The URI below is an arbitrary endpoint for internal use.
# It can be any available localhost port. There should be
# no need to change it, but if you do, you must also update
# the WSSERVER_PORT constant in the PushServer controller.
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://127.0.0.1:32080/$1" [P,L]
</IfModule>