十二 25
之所以设置伪静态是为了对搜索引擎更加友好,可以增加搜索引擎的收录.实现方法也很简单.在后台\设置\固定链接\常规设置\选择\自定义结构\输入/%year%/%monthnum%/%day%/%postname%/ 保存更改.在设置页面底部会有一个规则.将它复制.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
将这些内容复制到根目录中的.htaccess文件中,没有就新建一个上传到根目录.刷新即可.
One Response to “wordpress伪静态设置”
Leave a Reply
You must be logged in to post a comment.
十二月 13th, 2010 at 12:33 下午
I’d be inclined to comply with you here. Which is not something I usually do! I really like reading a post that will make people think. Also, thanks for allowing me to speak my mind!