Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Vladimir1985

Newbie
  
  • Posts

    1
  • Joined

  • Last visited

Vladimir1985's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Вопрос возник, делаю сайт на opencart 2.0. И есть проблема с ЧПУ сайта. Сам ЧПУ включил в настройках магазина, htaccess из txt перевел - ЧПУ в категориях, товарах, простых страницах все работает. Но недавно подключил Модуль Новости, забил одну новость, заполнил SEO url в ней, и ничего. В результате пришлось прописать в seo_url.php - (($data['route'] == 'information/news/info' || $data['route'] == 'information/news') && $key == 'news_id'). Снизу видно: if (isset($data['route'])) { if (($data['route'] == 'product/product' && $key == 'product_id') || (($data['route'] == 'product/manufacturer/info' || $data['route'] == 'product/product') && $key == 'manufacturer_id') || ($data['route'] == 'information/information' && $key == 'information_id') || (($data['route'] == 'information/news/info' || $data['route'] == 'information/news') && $key == 'news_id')) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE `query` = '" . $this->db->escape($key . '=' . (int)$value) . "'"); if ($query->num_rows && $query->row['keyword']) { $url .= '/' . $query->row['keyword']; unset($data[$key]); } Получилось у новостей сменился URL с такого - http://www.vadmin.nichost.ru/index.php?route=information/news/info&news_id=1, на такой http://www.vadmin.nichost.ru/novost-new . Но при этом пишет ЗАПРАШИВАЕМАЯ СТРАНИЦА НЕ НАЙДЕНА. Может кто нить подсказать? Соответственно сайт располагается тут - http://www.vadmin.nichost.ru . Может подключить какой нить модуль?
Guest
×
  • Create New...

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.