Jump to content
Sign in to follow this  
Djera

Главная страница сайта

Recommended Posts

Подскажите что исправить! чтобы с главной страницы убрать index.php?route=common/home???? а чтобы просто был сайт.ру. Все остальное нормально работает сайт.ру/категория/подкатегория. А вот главная index.php?route=common/home не могу найти решение - заранее спасибо!!!

Share this post


Link to post
Share on other sites

версия?

тип ЧПУ?

Share this post


Link to post
Share on other sites

system/library/response.php

в методе output(), в самом начале добавить строку:

if (!defined('HTTP_CATALOG')) $this->output = str_replace('index.php?route=common/home', '', $this->output);

должно получиться так: 

public function output() {
if (!defined('HTTP_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;
}

Share this post


Link to post
Share on other sites

почему то не получается

Share this post


Link to post
Share on other sites

замена была с 54 строки?
кэш почищен?

 

это 

public function output() {
if ($this->output) {
if ($this->level) {
$ouput = $this->compress($this->output, $this->level);
} else {
$ouput = $this->output;
} 

заменить на 

 

public function output() {
if (!defined('HTTP_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;
}

Share this post


Link to post
Share on other sites

post-674403-0-33757400-1400951161_thumb.jpg вот так получается

Share this post


Link to post
Share on other sites

кеш чистил

Share this post


Link to post
Share on other sites

.htaccess.txt----->.htaccess

Share this post


Link to post
Share on other sites

да и тут все правильно 

post-674403-0-42890600-1400952136_thumb.jpg

Share this post


Link to post
Share on other sites

Система-Настройки-Сервер-Seo pro -Чистим папку system/cache.Всё)))

Share this post


Link to post
Share on other sites

это тоже не помогло!! 

подсказали другое решение и оно помогло

в файле: system/library/url.php

после строчки:

if ($args) { $url .= str_replace('&', '&', '&' . ltrim($args, '&')); }


вставляем:

else { if($route == 'common/home') { if($connection == 'NONSSL') { return HTTP_SERVER; } else { return HTTPS_SERVER; } } }

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.