记录wordpress二级目录伪静态方法

文章来自互联网大佬。

RewriteEngine On
      RewriteBase /
      RewriteRule ^index\.php$ - [L]       
      # add a trailing slash to /wp-admin
      RewriteRule ^wp-admin$ wp-admin/ [R=301,L]       
      RewriteCond %{REQUEST_FILENAME} -f [OR]
      RewriteCond %{REQUEST_FILENAME} -d
      RewriteRule ^ - [L]
      RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
      RewriteRule ^(.*\.php)$ $1 [L]
      RewriteRule . index.php [L]
© 版权声明
THE END
喜欢就支持一下吧
点赞0赞赏 分享