一个标点符号解决WordPress在Windows+IIS主机下Tags不能用中文的问题
2010-09-09 09:33
369 查看
1.打开/wp-includes/rewrite.php 文件
2.找到下面的一段代码:
3. 在其中找到 if (empty($this->permalink_structure)) {
并改为if (!empty($this->permalink_structure)) {
也就是在empty前面添加一个英文呢感叹号(!)。
4.保存,完事。
2.找到下面的一段代码:
function get_tag_permastruct() { if (isset($this->tag_structure)) { return $this->tag_structure; } if (empty($this->permalink_structure)) { $this->tag_structure = ”; return false; } if (empty($this->tag_base)) $this->tag_structure = $this->front . ‘tag/’; else $this->tag_structure = $this->tag_base . ‘/’; $this->tag_structure .= ‘%tag%’; return $this->tag_structure; ......
3. 在其中找到 if (empty($this->permalink_structure)) {
并改为if (!empty($this->permalink_structure)) {
也就是在empty前面添加一个英文呢感叹号(!)。
4.保存,完事。
相关文章推荐
- 在Windows 2000 英文版操作系统中不能正常安装软件和显示中文问题的解决.
- 安装office2007之windows installer 服务不能更新一个或多个受保护的windows文件问题解决
- 使用cygwin在windows上模拟unix环境,解决不能显示中文的问题
- 解决Windows环境下Git Bash 不能输入中文的问题
- 安装office2007之windows installer 服务不能更新一个或多个受保护的windows文件问题解决
- 解决错误:此用户名包含无效字符,请输入有效的用户名。wordpress不能注册中文用户名的问题
- windows 控制台(CMD) 不能输入中文问题解决
- 解决windows 2000+IIS 5.0 中文名文件不能下载
- mysql出现中文乱码或不能输入中文问题的Windows或Linux系统解决方法
- mysql--出现中文乱码或不能输入中文问题的Windows或Linux系统解决方法
- 局域网内不能ping通主机名问题的一个解决办法
- 使用cygwin在windows上模拟unix环境,解决不能显示中文的问题
- Windows XP+IIS 不能更新。数据库或对象为只读问题解决~~
- Windows平台IIS下WordPress 2.7 中文tag和中文分类链接乱码的解决方法
- python 1: 解决linux系统下python中的matplotlib模块内的pyplot输出图片不能显示中文的问题
- 解决ebs在2003系统下不能显示中文的问题
- 一个简单的小问题的解决:类图中线变成直的,不能斜了
- 解决Windows下Arm下Linux下Qt4程序的中文乱码问题
- MySQL 5.7版本解决中文乱码问题(Windows)
- IIS启用Gzip压缩造成OpenFlashChart不能正常显示问题及解决方法