Skip to content

WordPress 相关

伪静态

Nginx

nginx
location / {
    try_files $uri $uri/ /index.php?$args;
}

Apache

apache
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
</IfModule>