wordpress伪静态设置

2009年12月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文件中,没有就新建一个上传到根目录.刷新即可.


sicnature ---------------------------------------------------------------------
Your current IP address is: 3.235.249.219
Your IP address location: 美国弗吉尼亚阿什本
Your IP address country and region: 美国 美国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source http://www.myzhenai.com/post/23.html

没有评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注