打开:/source/class/discuz/discuz_application.php
搜索:

if(isset($_GET['formhash']) && $_GET['formhash'] !== formhash()) {
                        system_error('request_tainting');
                }

改为:

if(isset($_GET['formhash']) && $_GET['formhash'] !== formhash()) {
                        //system_error('request_tainting');
                          //header('HTTP/1.1 301 Moved Permanently');
                          header("Location: https://".$_SERVER['HTTP_HOST']."/member.php?mod=logging&action=login");
                          exit;
                }

备注:https根据实际情况修改http

Discuz! Database Error

(1062) Duplicate entry 'available' for key 'PRIMARY'
INSERT INTO `minfish_conf` (`skey`, `svalue`) VALUES ('available', '1');

模板.PNG

MediaWiki 伪静态静态化

官方的Nginx伪静态设置
https://www.mediawiki.org/wiki/Manual:Short_URL/Nginx

估计你们也难搞,建议采用宝塔面板,网站配置里面的静态化规则:

laravel5的规则

location / {  
    try_files $uri $uri/ /index.php$is_args$query_string;  
}  

MVC规则

location /{
    if (!-e $request_filename) {
       rewrite  ^(.*)$  /index.php/$1  last;
       break;
    }
}