now i m going to see you how we fix that opencart 3.x seo issue.
step 1 - open your ftp and go to this path catalog/controller/startup
step 2 - open seo_url.php for edit
step 3 - line no 87 we have to put one more else if
code :
} elseif ($key == 'route') {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "seo_url WHERE `query` = '" . $this->db->escape($value) . "' AND store_id = '" . (int)$this->config->get('config_store_id') . "' AND language_id = '" . (int)$this->config->get('config_language_id') . "'");
if ($query->num_rows && $query->row['keyword']) {
$url .= '/' . $query->row['keyword'];
unset($data[$key]);
} else if ($data['route'] == "common/home") {
$url .= '/';
}
end code :
step 4 - rename .htaccess.txt to .htaccess
THIS VIDEO FOR DEVELOPERS ONLY
https://youtu.be/bS1N_twvL4o
Any Theme Compatible.
Frontend Demo
http://demo.sainent.com
use this above steps in order if you dont wanna use plugins
https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=31993 use this article if you wanna use plugins