Answer the question
In order to leave comments, you need to log in
How to remove common/home in seo pro opencart 2.3?
Hi all!
I installed the seo pro module for opencart 2.3, but for some reason the link to the home page has not changed and still looks like index.php?route=common/home how to remove it?
Answer the question
In order to leave comments, you need to log in
You just need to b.d. fill in all empty keywords prntscr.com/gb2xck except for common/home .
I also searched for a long time in Google, I didn’t find it (I found it, but it didn’t work) and decided this:
In catalog/controller/startup/seo_pro.php
, this is:
if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {
$config_ssl = substr($this->config->get('config_ssl'), 0, $this->strpos_offset('/', $this->config->get('config_ssl'), 3) + 1);
$url = str_replace('&', '&', $config_ssl . ltrim($this->request->server['REQUEST_URI'], '/'));
$seo = str_replace('&', '&', $this->url->link($this->request->get['route'], $this->getQueryString(array('route')), true));
} else {
$config_url = substr($this->config->get('config_url'), 0, $this->strpos_offset('/', $this->config->get('config_url'), 3) + 1);
$url = str_replace('&', '&', $config_url . ltrim($this->request->server['REQUEST_URI'], '/'));
$seo = str_replace('&', '&', $this->url->link($this->request->get['route'], $this->getQueryString(array('route')), false));
}
if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {
$config_ssl = substr($this->config->get('config_ssl'), 0, $this->strpos_offset('/', $this->config->get('config_ssl'), 3) + 1);
$url = str_replace('&', '&', $config_ssl . ltrim($this->request->server['REQUEST_URI'], '/'));
$seo = str_replace('&', '&', $this->url->link($this->request->get['route'], $this->getQueryString(array('route')), true));
} else {
$config_url = substr($this->config->get('config_url'), 0, $this->strpos_offset('/', $this->config->get('config_url'), 3) + 1);
$url = str_replace('&', '&', $config_url . ltrim($this->request->server['REQUEST_URI'], '/'));
$seo = str_replace('&', '&', $this->url->link($this->request->get['route'], $this->getQueryString(array('route')), false));
$seo=str_replace('index.php?route=common/home', '', $seo);
}
I will add to previous answers.
You can remove an extra "empty CNC" not only in phpMyAdmin, which is difficult for ordinary users, but also in the free SEO Manager module. Information taken from here - https://opencart-guide.com/seo/kak-ubrat-indexphpr...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question