SEO not working
Posted: Tue Aug 01, 2017 8:53 pm
The SEO URL is not working in ver 3.0.2.0.
My site is installed in a folder in the root and not at the root.
My site is installed in a folder in the root and not at the root.
OpenCart Community Forum - Discuss shopping cart and e-commerce solutions.
https://forum.opencart.com/
It's not a bug, the SEO URL is working just fine in OC 3.0.2.0!ChinmayBhatta wrote: ↑Tue Aug 01, 2017 8:53 pmThe SEO URL is not working in ver 3.0.2.0.
My site is installed in a folder in the root and not at the root.
Please share your .htaccess codesdogart wrote: ↑Tue Aug 29, 2017 12:30 amhello
I also am having trouble with SEO
I have two htaccess files
htaccess and .htaccess.txt
What do I do here, delete htaccess which is the original file and amend the .htaccess.txt by removing the .txt extension?
I have tried to amend but when I do i get 404 error on my pages.
Code: Select all
} 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 .= '/';
}