Как убрать ссылки типа /index.php?route=common/home
В файле
system/library/response.php в самом низу находим
public function output() {
if ($this->output) {
if ($this->level) {
$ouput = $this->compress($this->output, $this->level);
} else {
$ouput = $this->output;
}
if ($this->output) {
if ($this->level) {
$ouput = $this->compress($this->output, $this->level);
} else {
$ouput = $this->output;
}
Решение
После public function output() { (у меня это 54 строка)
if (!defined('https_CATALOG'))
$this->output = str_replace('index.php?route=common/home', '',
$this->output);
Получается:
public function output() {
if (!defined(‘https_CATALOG’))
$this->output = str_replace(‘index.php?route=common/home’, »,
$this->output);
if ($this->output) {
if ($this->level) {
$ouput = $this->compress($this->output, $this->level);
} else {
$ouput = $this->output;
}
if (!defined(‘https_CATALOG’))
$this->output = str_replace(‘index.php?route=common/home’, »,
$this->output);
if ($this->output) {
if ($this->level) {
$ouput = $this->compress($this->output, $this->level);
} else {
$ouput = $this->output;
}