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

原创 飞翔线  2011-04-12 08:30  阅读 62人浏览 次
caohuan

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...
本文地址:http://caohuan.com/wordpress-rewrite-rules-records-nginx-litespeed-cherokee-lighttpd.html
关注我们:请关注一下我们的微信公众号:扫描二维码飞翔线的公众号,公众号:aiboke112
版权声明:本文为原创文章,版权归 飞翔线 所有,欢迎分享本文,转载请保留出处!
caohuan
caohuan

评论已关闭!