此规则为lighttpd服务器最完美的wordpress Rewrite规则。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | url.rewrite-once =( "^/(.*)?/?files/$" => "index.php", "^/(.*)?/?files/(.*)" => "wp-content/blogs.php?file=$2", "^/(wp-.*)$" => "$1", "^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "$2", "^/([_0-9a-zA-Z-]+/)?(.*.php)$" => "$2", "(?.*)$" => "index.php$1", "." => "index.php" ) |
原文链接:https://xiaohost.com/57.html,转载请注明出处。
评论0