From f07d4db66cf34850ce9c64e34d5dd2644d84de11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=83=A1?= <3203164629@qq.com> Date: Fri, 2 Feb 2024 13:18:17 +0000 Subject: [PATCH] update .htaccess MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 小胡 <3203164629@qq.com> --- .htaccess | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..aa4e454 --- /dev/null +++ b/.htaccess @@ -0,0 +1,11 @@ + + Options +FollowSymlinks + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^wopi\/files\/(\w+)\/contents(.*)$ core/api/wopi/index.php?action=contents&path=$1&$2 [QSA,PT,L] + RewriteRule ^wopi\/files\/(\w+)\/(lock|unlock)(.*)$ core/api/wopi/index.php?action=$2&path=$1&$3 [QSA,PT,L] + RewriteRule ^wopi\/files\/(\w+)(.*)$ core/api/wopi/index.php?path=$1&$2 [QSA,PT,L] + RewriteRule ^wopi\/files\/(.*)$ core/api/wopi/index.php?$1 [QSA,PT,L] + RewriteRule ^dingredirect\/(\w+)$ index.php?mod=dingtalk&op=dingredirect&url=$1 [QSA,PT,L] + \ No newline at end of file