思绪的空中生活

lighttpd下typecho的伪静态
伪静态作用美观,seo需要修改步骤打开 userdisk/llmp/etc/lighttpd/lighttpd.c...
扫描右侧二维码阅读全文
09
2017/10

lighttpd下typecho的伪静态

伪静态作用

美观,seo需要

修改步骤

打开 userdisk/llmp/etc/lighttpd/lighttpd.conf 文件
1."mod_fastcgi",的下一行添加"mod_rewrite"
lighttpd
2.增加以下代码

url.rewrite-if-not-file = (
"^/(admin|usr)/(.*)" => "/$1/$2",
"^/(.*)$" => "/index.php/$1"
)

3.重启lighttpd服务,kill pid 或者 重启路由器
方法1.ssh到192.168.31.1:3333 root用户,执行:ps | grep lighttpd
看到那个数字了么这个就是lighttpd的进程PID,下面命令中 字母PID 更换为你的那个数字
Kill PID
kill pid
方法2.重启路由器

注意

修改后,出现网站打不开的情况,用命令ps | grep lighttpd查看是否有/usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf进程。如果没有,恢复原文件,重启路由器即可

参考资料:
1.教你在小米路由上也玩一把wordpress伪静态
2.lighttpd下关于typecho的3种伪静态规则,亲测可用

相关文章:

  • 中兴f460开启telnet
  • 宝塔面板安装frp
  • pve调整磁盘大小
  • N1将armbian刷入emmc
  • anyhk nat 食用指南
  • Last modification:October 9th, 2017 at 08:50 am
    If you think my article is useful to you, please feel free to appreciate

    3 comments

    1. 星球彦

      不用apache?这个服务器有啥特别的呀

    2. xqiushi

      lighttpd我得百度一下

      1. 思绪的空中生活
        @xqiushi

        大神还需要百度么

    Leave a Comment Cancel reply