Opencart 3 x SEO Url not working for route information contact route account login

0 votes

opencart 3 .x SEO URL issue

In opencart 3 .x SEO URL Working for product id, category id, information id but for page common/home, account/login, account/account etc not working.

i had changed it from htaccess.txt to .htaccess

Feb 19 in Others by Kichu
• 19,040 points
574 views

1 answer to this question.

0 votes

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

answered Feb 20 by narikkadan
• 10,840 points

Related Questions In Others

0 votes
0 answers

Yoast SEO/Facebook OG: Image not displaying after fb url change

i recently changed the name of my ...READ MORE

Feb 14 in Others by Kichu
• 19,040 points
56 views
0 votes
1 answer

Why is just an ID in the URL path a bad idea for SEO?

yes it affects the click through rates ...READ MORE

answered Feb 20 in Others by narikkadan
• 10,840 points
47 views
0 votes
1 answer

opencart seo url rewriting

first of all to do this you ...READ MORE

answered Feb 20 in Others by narikkadan
• 10,840 points
70 views
0 votes
1 answer

Ceon SEO URl gives the error page not found in zen cart

 go to admin->Modules->Ceon URI Config, select Installation ...READ MORE

answered Feb 26 in Others by narikkadan
• 10,840 points
95 views
0 votes
1 answer

How can I create custom SEO-friendly URLs in OpenCart?

Index: catalog/controller/common/seo_url.php =================================================================== --- catalog/controller/common/seo_url.php (old) +++ catalog/controller/common/seo_url.php ...READ MORE

answered Feb 21 in Others by narikkadan
• 10,840 points
33 views
0 votes
1 answer

Ceon SEO URl gives the error page not found in zen cart

in the admin section there is  an ...READ MORE

answered Feb 18 in Others by narikkadan
• 10,840 points
18 views
0 votes
0 answers

SEO friendly url using php

I wanted to use php to make ...READ MORE

Feb 18 in Others by Kichu
• 19,040 points
35 views
0 votes
1 answer

Creating SEO friendly urls using htaccess

its just a simple step just use ...READ MORE

answered Feb 20 in Others by narikkadan
• 10,840 points
31 views
0 votes
1 answer

PHP Convert String to SEO Friendly Url For Bengali Language Type

$string = preg_replace("/[^a-z0-9]/u", "$separator", $string);  change the ...READ MORE

answered Feb 14 in Others by narikkadan
• 10,840 points
75 views
0 votes
1 answer

Legitimate URL Cloaking for SEO?

the redirection technique your planning to implement ...READ MORE

answered Feb 15 in Others by narikkadan
• 10,840 points
51 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP