浏览模式: 标准 | 列表 2015年04月23日的文章

wordpress搬迁到windows下tag无法rewrite

把一个wordpress的博客搬迁到了windows主机下,但是有中文名的tag链接打开都是404页面。

解决方法:

  1. 找到程序根目录下的wp-includes文件夹中rewrite.php文件,用notepad++打开它。
  2. 搜索public function get_extra_permastruct($name)
  3. 在它下一行会看到if ( empty($this->permalink_structure) )
  4. 在empty前加一个英文的感叹号变成if ( !empty($this->permalink_structure) )
  5. 保存后就可以了。