佳期如梦
php
23058
3
如:http://www.a.com/?post=1
修改成:http://www.a.com/?pdwl=1
文件一:include\lib\option.php
找到以下内容
'reg_0' => '|^.*/\?(post)=(\d+)(&(comment-page)=(\d+))?([\?&].*)?$|',
'reg_1' => '|^.*/(post)-(\d+)\.html(/(comment-page)-(\d+))?/?([\?&].*)?$|',
'reg_2' => '|^.*/(post)/(\d+)(/(comment-page)-(\d+))?/?$|',
'reg_3' => '|^/([^\./\?=]+)(\.html)?(/(comment-page)-(\d+))?/?([\?&].*)?$|'
修改()中的POST,改成你任意字母
文件二:include\lib\url.php
$logUrl = BLOG_URL . '?post=' . $blogId;
break;
case '1'://静态
$logUrl = BLOG_URL . 'post-' . $blogId . '.html';
break;
case '2'://目录
$logUrl = BLOG_URL . 'post/' . $blogId;
break;
修改POST就好了!改成任意字母!跟上面要一样!
文件三:include\controller\log_controller.php
if ($params[1] == 'post')
修改成跟上面一样的字母!
占时还没有发现啥错误!= =请谨慎修改!
11 11 (2019-03-01 15:05:05)
33