<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</IfModule>(二)Nginx伪静态规则

Nginx伪静态须要添加伪静态到网站配置文件的server代码段之内

if (!-e $request_filename){rewrite ^.+?(/wp-.) last;rewrite ^.+?(/.\.php)$ last;rewrite ^ /index.php last;}(三)IIS伪静态规则web.config

web.config为IIS7.5以上的版本所支持的伪静态格式,iis6现已淘汰以是就不再支持。
把伪静态规则整体复制新建web.config到网站根目录即可

iisphp伪静态wordpress伪静态规矩Apache Nginx IIS Node.js

<?xml version=&#34;1.0" encoding="UTF-8"?><configuration><system.webServer><rewrite><rules><rule name="WordPress" stopProcessing="true"><match url="^(.)$" /><conditions><add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /><add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /></conditions><action type="Rewrite" url="index.php" appendQueryString="true" /></rule></rules></rewrite></system.webServer></configuration>