Bug description:
- When you enable Use SEO URLs (Admin: Settings >> Server >> Use SEO URLs), if you click on blog page in frontend, you get error 404.
Solution: This is the bug of Simple Blog
In this case, please go to the file vqmod/xml/simple_blog_catalog.xml and find:
<file name=”catalog/controller/common/seo_url.php”>
<operation>
<search position=”replace” offset=”2″><![CDATA[$this->request->get['route'] = ‘error/not_found’;]]></search>
<add><![CDATA[
/*if($this->db->escape($part) == ‘simple-blog’) {
} else {
$this->request->get['route'] = ‘error/not_found’;
break;
}*/
if(($this->config->has(‘simple_blog_seo_keyword’)) && ($this->db->escape($part) == $this->config->get(‘simple_blog_seo_keyword’))) {
} else if($this->db->escape($part) == ‘simple-blog’) {
} else {
$this->request->get['route'] = ‘error/not_found’;
break;
}
]]></add>
</operation>
=> Please add the code following append to the above code:
<operation>
<search position=”replace”><![CDATA[if ($query->row['query'] && $url[0] != ‘information_id’ && $url[0] != ‘manufacturer_id’ && $url[0] != ‘category_id’ && $url[0] != ‘product_id’) {]]></search>
<add><![CDATA[
if ($query->row['query'] && $url[0] != ‘information_id’ && $url[0] != ‘manufacturer_id’ && $url[0] != ‘category_id’ && $url[0] != ‘product_id’ && $url[0] != ‘simple_blog_article_id’ && $url[0] != ‘simple_blog_category_id’ && $url[0] != ‘simple_blog_author_id’) {
]]></add>
</operation>
You can refer the screenshot:
Thanks