MakLu.cn出国了,以及WP在Lighttpd下的Rewrite问题

不过这不是重点,我要说的是WordPress在lighttpd 下Rewrite的问题

wp系统只能自动生成Apache的Rewrite规则,那lighttpd就要我们手动添加了,如果你的wp在域名根目录下的话,用这个规则就而已:

$HTTP["host"] =~ “maklu\.cn” {
var.wpdir = “/”
url.rewrite-once = (
“^” + wpdir + “(wp-.+).*/?” => “$0″,
“^” + wpdir + “(sitemap.xml)” => “$0″,
“^” + wpdir + “(xmlrpc.php)” => “$0″,
“^” + wpdir + “keyword/([A-Za-z_0-9-])/?$” => wpdir + “index.php?keyword=$1″,
“^” + wpdir + “(.+)/?$” => wpdir + “index.php/$1″
)}

其实出国还是挺重要的一件事,尤其是在当下的中国互联网环境下,那给大家指一条路吧,MakLu.cn现在使用的是 DiaVPS 的VPS,这是我找了这么久找到的速度最快的一家美国主机,有机器在 SoftLayer 的数据中心,还是比较放心的……

就是这样了,完了啥时候把这个cn域名也给扔了,然后彻底出国。

妈的。

This entry was posted in Web, 互联网, 记录 and tagged , , , . Bookmark the permalink.

4 Responses to MakLu.cn出国了,以及WP在Lighttpd下的Rewrite问题

  1. Mak says:

    @Dragon 要真能注册到就好了

  2. aben says:

    不明真相的群众前来围观!

  3. VPS侦探 says:

    恩,diavps的不错。。。

留下评论

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>