wordpress伪静态设置

使用帮助 Add comments

之所以设置伪静态是为了对搜索引擎更加友好,可以增加搜索引擎的收录.实现方法也很简单.在后台\设置\固定链接\常规设置\选择\自定义结构\输入/%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伪静态设置”

  1. Carlotta Hampel Says:

    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!

Leave a Reply

You must be logged in to post a comment.

同福客栈论坛 & 海南乡情论坛 by 0898-shop &
Entries RSS Comments RSS 登录
  琼ICP备08000253号