wordpress重写规则记录Nginx/litespeed/cherokee/Lighttpd

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

<Directory />

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</Directory>
3.然后是 Lighttpd配置wordpress重写伪静态 lighttpd.conf重写伪静态

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


4.然后是 cherokee配置wordpress重写伪静态 在后台配置,稍后更新,敬请关注

去打赏

您的支持将鼓励我们继续创作!

[微信] 扫描二维码打赏

[支付宝] 扫描二维码打赏

正在跳转到PayPal...

Author: 飞翔线