zblog是一款小巧的博客系统,应用非常广,如果在使用中开启伪静态,那么就会有利于百度收录。zblog的伪静态规则怎么写呢?万维景盛小编下面和大家分享一下:
APACHE版的zblog伪静态规则文件:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
nginx版的伪静态规则文件:if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
IIS7,IIS8,IIS10版zblog伪静态规则:<?xml version="1.0" encoding="UTF-8"?>
lighttpd(light httpd)版zblog伪静态规则:# Rewrite rules
url.rewrite-if-not-file = (
"^/(zb_install|zb_system|zb_users)/(.*)" => "$0",
"^/(.*.php)" => "$0",
"^/(.*)$" => "/index.php/$0"
)