跳过正文
  1. Blogs/

Dokuwiki Nginx 伪静态

·29 字·1 分钟· ·
代码 Dokuwiki-Nginx-Rewrite Nginx Doku Dokuwiki Rewrite
作者
大大的小蜗牛
机会总是垂青于有准备的人!
目录
rewrite ^(/)_media/(.*) $1lib/exe/fetch.php?media=$2 last;
rewrite ^(/)_detail/(.*) $1lib/exe/detail.php?media=$2 last;
rewrite ^(/)_export/([^/]+)/(.*) $1doku.php?do=export_$2&id=$3 last;
location /
    {
        if (!-f $request_filename)
        {
            rewrite ^(/)(.*)?(.*)  $1doku.php?id=$2&$3 last;
            rewrite ^(/)$ $1doku.php last;
        }
    }

Load Giscus
or