Lighttpd配置phpWind伪静态(在kloxo面板开启url rewrite)
  • kloxo面板支持discuz论坛,phpwind论坛的伪静态吗?经过我们的测试,完全支持!

    Lighttpd配置phpwind伪静态

    首先,需要在kloxo面板切换apache程序为lighttpd程序,因为他默认就开启url rewrite支持。


    switch_to_lighttpd.png
    switch_to_lighttpd.png

     

    设置Lighttpd的phpwind伪静态规则:   url.rewrite = ("^(.*)-htm-(.*)$" => "$1.php?$2")


    lighttpd_url_rewrite.png
    lighttpd_url_rewrite.png

     

    重启Lighttpd,如下图,在 服务器:linux =》服务=》点击 lighttpd 这一行第3个蓝色的圆点(我已经加了阴影)

    restart_lighttpd.png

     

    进入phpwind后台,设置伪静态的参数,如下图:


    phpwind_start_url_rewrite.png
    phpwind_start_url_rewrite.png

     

    立刻就生效了,看看下图的网址:

    phpwindow_url_rewrite_demo.png

     

    Lighttpd的phpwind伪静态规则:  

    url.rewrite = ("^(.*)-htm-(.*)$" => "$1.php?$2")

    WordPress 的lighttpd的rewrite(伪静态)规则如下

    url.rewrite = (
    "^/(wp-.+).*/?" => "$0",
    "^/(sitemap.xml)" => "$0",
    "^/(xmlrpc.php)" => "$0",
    "^/(.+)/?$" => "/index.php/$1"
    )

    Discuz 的lighttpd的rewrite(伪静态)规则如下


    url.rewrite-once = (
    "^/archiver/((fid|tid)-[/w/-]+/.html)$" => "archiver/index.php?$1",
    "^/forum-([0-9]+)-([0-9]+)/.html$" => "forumdisplay.php?fid=$1&page=$2",
    "^/thread-([0-9]+)-([0-9]+)-([0-9]+)/.html$" => "viewthread.php?tid=$1&extra=page=$3&page=$2",
    "^/space-(username|uid)-(.+)/.html$" => "space.php?$1=$2",
    "^/tag-(.+)/.html$" => "tag.php?name=$1"
    )

     

  •  

  • 点这里复制本页地址发送给您QQ/MSN上的好友
  • 300*300广告