修改EMLOG博客的链接

如: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') 修改成跟上面一样的字母! 占时还没有发现啥错误!= =请谨慎修改!

评论

评论正在提交中...请稍后
评论提交成功...
  1. #3

    11 11 (2019-03-01 15:05:05)
    33

  2. #2

    123 123 (2019-03-01 15:04:48)
    q w e r

  3. #1

    123 213 (2019-02-27 17:35:35)
    23243

鄂公网安备 42010402000422号