1.Nginx配置wordpress伪静态 Nignx.conf重写伪静态(不同版本使用的也不相同)

if (!-e $request_filename) {
    rewrite . /index.php last;
}

或者

if (!-e $request_filename) {
    rewrite ^(.*)$ /index.php?q=$1 last;
}

或者

location / {
  try_files $uri $uri/ /index.php?$args;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
location ~* ^/wp-content/uploads/.*\.php$ {
  deny all;
}

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"
)

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

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。