WordPress Blog伪静态设置

code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>

保存为 .htaccess

WordPress设置为:/%category%/%post_id%.html (我设置是这样的)
1式
/archives/%category%/%postname%.html
2式
/post/%post_id%.html

© 版权声明
THE END
喜欢就支持以下吧
点赞0 分享
Sometimes, we are not waiting for somebody or something. We are waiting to be changed as time goes by.
有时候,我们并不是在等什么人或什么事。我们只是在静待岁月改变自己