Удаление «index.php?route=common/home» в Opencart
Эта модификация удаляет « index.php?route=common/home » из URL главной страницы. Дополнение избавит ваш сайт от ссылок на страницу дублирующую главную страницу сайта.
По умолчанию в опенкарт существует дубль главной страницы « yourdomain.com/index.php?route=common/home » после установки все ссылки на главную будут иметь вид « yourdomain.com »
Важно! Работает только с URL-адресами! Для этого в настройках магазина необходимо включить SEO-URL. Не подойдет для SEO PRO.
| Характеристики дополнения | |
| Совместимость | 2.0.0.0, 2.0.1.0, 2.0.1.1, 2.0.2.0, 2.0.3.1, 2.1.0.1, 2.1.0.2, 2.2.0.0, 2.3.0.0, 2.3.0.1, 2.3.0.2, 3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3, 3.0.3.5, 3.0.3.6, 3.0.3.7, 3.0.3.8 |
| Локализация | русский, украинский, английский |
| Ocmod | да |
| Характеристики дополнения | |
| Совместимость | 2.0.0.0, 2.0.1.0, 2.0.1.1, 2.0.2.0, 2.0.3.1, 2.1.0.1, 2.1.0.2, 2.2.0.0, 2.3.0.0, 2.3.0.1, 2.3.0.2, 3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3, 3.0.3.5, 3.0.3.6, 3.0.3.7, 3.0.3.8 |
| Локализация | русский, украинский, английский |
| Ocmod | да |
Как убрать index php route common home

This module removes the default «index.php?route=common/home» from the home page url. It’s quite simple and fast.
The module is very easy to install and use. Once installed, it does not require any additional configurations or tweaking of settings.
Important! Before Installing (Use SEO URLs — Must be enabled!)
Features
• It is very simple and easy to use.
• It does not overwrite any opencart default files (OCMOD).
Live demo OPENCART 3.X
View Demo
Live demo OPENCART 2.X
View Demo
Install instructions
OPENCART 3.X
1. In the Opencart administration section Goto ‘Extensions -> Installer’ and upload «remove-common-home-3x.ocmod.zip».
2. Then navigate to ‘Extensions -> Modifications’ and click refresh for the module to be applied.
3. Go to Dashboard, click on gear in top right corner of a page and Refresh theme cache.
4.DONE!
OPENCART 2.X
1. Unzip the downloaded «remove-common-home-2x.zip» file, and you will remove_common_home_2x.ocmod.xml.
2.Go to Admin Dashboard -> Extensions -> Extension Installer -> Upload -> Choose «remove_common_home_2x.ocmod.xml» from Extract zip.
3. Browse to Extensions > Modifications and click the Refresh button to rebuild the modification cache.
4.DONE!
About plugin Support Contact Below Details
Support Email: info@sprexetechnologies.com
Support Site : http://sprexetechnologies.com
Thanks for your choise!
If you liked this module — please Comment / rate him on module page or into your downloads
What customers say about remove common/home
Worked Perfectly in OpenCart 3.0.3.8 using Journal 3 template. Thank you!
~AjaEnterprises
Super module .. Work perfect on latest version 3.0.3.8 with Journal theme 3. Best module ever
~maruntisuri
Versão 3.0.3.3 (Brasil 1.4.15), perfect. Thanks
~SimoneGP
Login and write down your comment.
Как убрать index.php?route=common/home
Создайте аккаунт или войдите в него для комментирования
Вы должны быть пользователем, чтобы оставить комментарий
Создать аккаунт
Зарегистрируйтесь для получения аккаунта. Это просто!
Войти
Уже зарегистрированы? Войдите здесь.
Больше способов поделиться.
Похожие публикации
Opencart 3.0.2 Https SSL index.php?route=common/home — Решения 1 2
Автор: gigamarket24, 11 декабря 2018
Виділити акційну ціну в admin/index.php?route=sale/order/info
Автор: yurabr, 12 октября
Url index.php?route=product/special
Автор: foggy, 5 августа
profiler Route board — Профилирование, помощник в оптимизации сайта!
- без гмо
- debug
- (и ещё 37)
Не відображається текст в Home Page Slideshow
Автор: vanekzp, 14 сентября
Сейчас на странице 0 пользователей
- Нет пользователей, просматривающих эту страницу.
Покупцям
- Оплата розширень фізичними особами
- Оплата розширень юридичними особами
- Політика повернень
Розробникам
- Регламент розміщення розширень
- Регламент продажу та підтримки розширень
- Віртуальний обліковий запис автора
- Політика просування оголошень
- API каталогу розширень
- Вирішення спорів щодо авторських прав
Корисна інформація
- Публічна оферта
- Політика повернень
- Політика конфіденційності
- Платіжна політика
- Політика передачі особистих даних
- Політика прозорості
Останні розширення
![]()
![]()
![]()
![]()
![]()
Движок интернет магазина OpenCart (ocStore) — официальный сайт OpenCartForum.com Powered by Invision Community
- Уже зарегистрированы? Войти
- Регистрация
Раздел покупок
ocStore
- Назад
- Официальный сайт
- Демо ocStore 3.0.3.2
- Демо ocStore 2.3.0.2.4
- Скачать ocStore
- Документация
- История версий ocStore
Шаблоны
OpenCart.Pro
- Создать.
Важная информация
На нашем сайте используются файлы cookie и происходит обработка некоторых персональных данных пользователей, чтобы улучшить пользовательский интерфейс. Чтобы узнать для чего и какие персональные данные мы обрабатываем перейдите по ссылке. Если Вы нажмете «Я даю согласие», это означает, что Вы понимаете и принимаете все условия, указанные в этом Уведомлении о Конфиденциальности.
How to Remove Common/Home in OpenCart 2.3.x and 3.x
Everything is looking fine and you’re happy about the new, shorter URLs.
However, there’s this one, last annoying URL that keeps bugging you.
The index.php?route=common/home appearing after you click your home page logo.
We believe it’s time to solve that once and for all.
In this tutorial, we’ll show you how to get rid of that in two ways — the quick and easy way, as well as the clean and correct way.
Let’s get this over with.
The Problem
This is how the default URL looks like when you’re at the home:
However, when you click on your logo, this happens:

And it has the audacity to appear even after you’ve successfully enabled your SEO URLs.
Even with the new OpenCart 3.0 update, there’s still no way to edit this from the admin panel.
This is why, we must resort to alternative methods.
The Solutions
There are 2 main methods to remove this from your store’s URL.
- Modify your .htaccess file.
- Use the OpenCart Events system.
Method #1
To modify your htaccess file, you need to open your OpenCart root directory (with FileZilla for example).
If your SEO URLs are enabled successfully, your htaccess file should already be renamed from .htaccess.txt to just .htaccess.

Edit/View the htaccess file and find this line:
Below it, paste these three lines:
RewriteCond % ^route=common/home$
RewriteCond % !^POST$
RewriteRule ^index\.php$ http://%? [R=301,L]
Save your htaccess file and your store logo should now be generating the clean URL of your home page.
Method #2
IMPORTANT: This will work only for OpenCart 2.3.0.0+ and 3.0+.
For older OpenCart versions, use Method #1.
Step 1:
Upload a new file in your OpenCart store:
It must contain the following code:
config->get('config_seo_url') && !$this->config->get('seo_url_common_home_status')) < $this->url->addRewrite($this); $this->config->set('seo_url_common_home_status', 1); > > public function rewrite($link) < $url = ''; $data = array(); $url_info = parse_url(str_replace('&', '&', $link)); if (empty($url_info['query'])) < return $link; >parse_str($url_info['query'], $data); if (isset($data['route']) && $data['route'] == 'common/home') < $is_common_home = true; >else < $is_common_home = false; >if ($is_common_home) < unset($data['route']); $query = ''; if ($data) < foreach ($data as $key =>$value) < $query .= '&' . rawurlencode((string)$key) . '=' . rawurlencode((is_array($value) ? http_build_query($value) : (string)$value)); >if ($query) < $query = '?' . str_replace('&', '&', trim($query, '&')); >> return $url_info['scheme'] . '://' . $url_info['host'] . (isset($url_info['port']) ? ':' . $url_info['port'] : '') . str_replace('/index.php', '', $url_info['path']) . $url . $query; > else < return $link; >> >
Step 2:
In your database run the following queries:
IMPORTANT: Before running the queries, replace with your OpenCart prefix.
Typically it is oc_ , but you might have changed it with another value. To see your OpenCart prefix, open up the OpenCart file /config.php and find the line saying define(‘DB_PREFIX’, ‘. ‘);
DELETE FROM `event` WHERE code=’seo_url_common_home’;
INSERT INTO `event` (`code`, `trigger`, `action`, `status`) VALUES (‘seo_url_common_home’, ‘catalog/*/before’, ‘extension/common/seo_url_common_home’, 1);
Step 3:
Make sure System > Settings > Edit > tab Server > Use SEO URLs is set to Yes.
Method #2 works for both Apache and NGINX servers, while Method #1 works only on Apache servers.
Now all URLs containing route=common/home will be rewritten to not contain it.
Conclusion
This puts an end to the common/home situation in OpenCart. You should no longer experience the issue and keep your home page URL clean.
