解决K2 Content Filter Module for Joomla 与sh404sef的兼容问题

如果你的网站同时安装了sh404sef和K2 Content Filter Module,你需要修改组件文件,

文件:

  1. components\com_k2\sef_ext\com_k2.php

查找代码:

  1. case 'search' :
  2. $title[] = 'search';
  3. if (!empty($searchword))
  4. $title[] = $searchword;
  5. break;

然后在它的后面添加代码:

  1. case 'filter' :
  2. $title[] = 'filter';
  3. if (!empty($searchword))
  4. $title[] = $searchword;
  5. break;

最后你需要清空缓存和重新应用SEF。