how we fix that opencart 3.x seo url

afardesign

Member
XNullUser
Joined
Dec 13, 2021
Messages
132
Reaction score
3
Points
18
Location
United States
NullCash
7
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
 

!! Hack-BoY !!

Active member
Elite
XNullUser
Joined
Nov 3, 2021
Messages
160
Reaction score
171
Points
43
NullCash
957
u can install that extanion and fix all coustom link in your website bro
 

Attachments

  • seobackpack.ocmod.zip
    890.4 KB · Views: 1

Leonardus

Member
XNullUser
Joined
Dec 31, 2021
Messages
133
Reaction score
0
Points
16
NullCash
43
thnx
Post automatically merged:

thanx
 
Last edited:
Top