1.Nginx 配置 WordPress 伪静态 Nignx.conf 重写伪静态

if (!-e $request_filename) {

rewrite . /index.php last;

}

或者

if (!-e $request_filename) {

rewrite ^(.*)$ /index.php?q=$1 last;

}

2. litespeed 配置 WordPress 重写伪静态 同 Apache 的相同并支持.htaccess

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

3. 然后是 Lighttpd 配置 WordPress 重写伪静态 lighttpd.conf 重写伪静态

url.rewrite = (

“^/(wp-. ).*/?” => “$0”,

“^/(sitemap.xml)” => “$0”,

“^/(xmlrpc.php)” => “$0”,

“^/(. )/?$” => “/index.php/$1”

)