Hello!
the problem is with the manufacturers list of our site,
I don!t know how can I solve this problem, which is
ALL The SEO pages are exist,
mysite.com/manufacturer
But the links are stoped to translate to SEO friendly, which now looks like this at the address bar after click
http://www.mysite.com/index.php?route=p ... urer_id=17
As I see the seo-url.php perfect url rewriting all of this url's by the aliases, which is existed in our database anyway.
I am not a site builder expert, and don’t know the logical structure how links build or rewrited and how is it happening.
For example the first brand is 4ms Pedals the alias is 4ms-pedals, it should translated like this
http://www.mysite.com/4ms-pedals this page exist anyway when its written to the addressbar manually, but the manufacturer links are not translated
the problem is with the manufacturers list of our site,
I don!t know how can I solve this problem, which is
ALL The SEO pages are exist,
mysite.com/manufacturer
But the links are stoped to translate to SEO friendly, which now looks like this at the address bar after click
http://www.mysite.com/index.php?route=p ... urer_id=17
As I see the seo-url.php perfect url rewriting all of this url's by the aliases, which is existed in our database anyway.
I am not a site builder expert, and don’t know the logical structure how links build or rewrited and how is it happening.
For example the first brand is 4ms Pedals the alias is 4ms-pedals, it should translated like this
http://www.mysite.com/4ms-pedals this page exist anyway when its written to the addressbar manually, but the manufacturer links are not translated
How did you solve your manufacturer SEO problem? I am having the same problem.
DTB Lingerie ~ Stop in for a look...we dare you.
check this Optimize Site URL Architecture Technical SEO [VQMOD] extension:
http://www.opencart.com/index.php?route ... =target409
http://www.opencart.com/index.php?route ... =target409
Opencart Development & Consult:
All in One SEO Package: making your Opencart SEO friendly
Product Rich Snippets: Breadcrumb, Product & Product Reviews
Custom Titile H1 Tag: custom category title, h1, bottom description and product title
Optimize Site URL Architecture: unique url w/breadcrumb, seo friendly url architecture
hey,
i am having problem with manufacture SEO url problem,
my category, product SEO url's working fine.
please advice how its work.
thanks
i am having problem with manufacture SEO url problem,
my category, product SEO url's working fine.
please advice how its work.
thanks
Can this solution be published if known by someone.
Sharing stuff can help everybody and make this forum more usefull for people who are looking for results.
Sharing stuff can help everybody and make this forum more usefull for people who are looking for results.
Ok, figured it out and here is a solution:
Set in Backend - ADMIN - Catalog - Manufacturer your seo keyword for the manufacturer
Open catalog/controller/common/seo_url.php
Add the word INFO as in the attached jpegs
This would show the manufacturer as a nice seo url. I am trying to find out more how to replace the ? in front of page=5
http://yourwebsite.com/seo-keyword?page=8
I hope that if someone has a problem and they can solve it by themselves they also post the solution so others can use this.
Cheers to all of you
Set in Backend - ADMIN - Catalog - Manufacturer your seo keyword for the manufacturer
Open catalog/controller/common/seo_url.php
Add the word INFO as in the attached jpegs
This would show the manufacturer as a nice seo url. I am trying to find out more how to replace the ? in front of page=5
http://yourwebsite.com/seo-keyword?page=8
I hope that if someone has a problem and they can solve it by themselves they also post the solution so others can use this.
Cheers to all of you
Attachments
1b.JPG (46.24 KiB) Viewed 4190 times
1a.JPG (65.69 KiB) Viewed 4190 times
hey, its already there.
<?php
class ControllerCommonSeoUrl extends Controller {
public function index() {
// Add rewrite to url class
if ($this->config->get('config_seo_url')) {
$this->url->addRewrite($this);
}
// Decode URL
if (isset($this->request->get['_route_'])) {
$parts = explode('/', $this->request->get['_route_']);
foreach ($parts as $part) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE keyword = '" . $this->db->escape($part) . "'");
if ($query->num_rows) {
$url = explode('=', $query->row['query']);
if ($url[0] == 'product_id') {
$this->request->get['product_id'] = $url[1];
}
if ($url[0] == 'category_id') {
if (!isset($this->request->get['path'])) {
$this->request->get['path'] = $url[1];
} else {
$this->request->get['path'] .= '_' . $url[1];
}
}
if ($url[0] == 'manufacturer_id') {
$this->request->get['manufacturer_id'] = $url[1];
}
if ($url[0] == 'information_id') {
$this->request->get['information_id'] = $url[1];
}
} else {
$this->request->get['route'] = 'error/not_found';
}
}
if (isset($this->request->get['product_id'])) {
$this->request->get['route'] = 'product/product';
} elseif (isset($this->request->get['path'])) {
$this->request->get['route'] = 'product/category';
} elseif (isset($this->request->get['manufacturer_id'])) {
$this->request->get['route'] = 'product/manufacturer/info';
} elseif (isset($this->request->get['information_id'])) {
$this->request->get['route'] = 'information/information';
}
if (isset($this->request->get['route'])) {
return $this->forward($this->request->get['route']);
}
}
}
public function rewrite($link) {
$url_info = parse_url(str_replace('&', '&', $link));
$url = '';
$data = array();
parse_str($url_info['query'], $data);
foreach ($data as $key => $value) {
if (isset($data['route'])) {
if (($data['route'] == 'product/product' && $key == 'product_id') || (($data['route'] == 'product/manufacturer/info' || $data['route'] == 'product/product') && $key == 'manufacturer_id') || ($data['route'] == 'information/information' && $key == 'information_id')) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE `query` = '" . $this->db->escape($key . '=' . (int)$value) . "'");
if ($query->num_rows) {
$url .= '/' . $query->row['keyword'];
unset($data[$key]);
}
} elseif ($key == 'path') {
$categories = explode('_', $value);
foreach ($categories as $category) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE `query` = 'category_id=" . (int)$category . "'");
if ($query->num_rows) {
$url .= '/' . $query->row['keyword'];
}
}
unset($data[$key]);
}
}
}
if ($url) {
unset($data['route']);
$query = '';
if ($data) {
foreach ($data as $key => $value) {
$query .= '&' . $key . '=' . $value;
}
if ($query) {
$query = '?' . trim($query, '&');
}
}
return $url_info['scheme'] . '://' . $url_info['host'] . (isset($url_info['port']) ? ':' . $url_info['port'] : '') . str_replace('/index.php', '', $url_info['path']) . $url . $query;
} else {
return $link;
}
}
}
?>
<?php
class ControllerCommonSeoUrl extends Controller {
public function index() {
// Add rewrite to url class
if ($this->config->get('config_seo_url')) {
$this->url->addRewrite($this);
}
// Decode URL
if (isset($this->request->get['_route_'])) {
$parts = explode('/', $this->request->get['_route_']);
foreach ($parts as $part) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE keyword = '" . $this->db->escape($part) . "'");
if ($query->num_rows) {
$url = explode('=', $query->row['query']);
if ($url[0] == 'product_id') {
$this->request->get['product_id'] = $url[1];
}
if ($url[0] == 'category_id') {
if (!isset($this->request->get['path'])) {
$this->request->get['path'] = $url[1];
} else {
$this->request->get['path'] .= '_' . $url[1];
}
}
if ($url[0] == 'manufacturer_id') {
$this->request->get['manufacturer_id'] = $url[1];
}
if ($url[0] == 'information_id') {
$this->request->get['information_id'] = $url[1];
}
} else {
$this->request->get['route'] = 'error/not_found';
}
}
if (isset($this->request->get['product_id'])) {
$this->request->get['route'] = 'product/product';
} elseif (isset($this->request->get['path'])) {
$this->request->get['route'] = 'product/category';
} elseif (isset($this->request->get['manufacturer_id'])) {
$this->request->get['route'] = 'product/manufacturer/info';
} elseif (isset($this->request->get['information_id'])) {
$this->request->get['route'] = 'information/information';
}
if (isset($this->request->get['route'])) {
return $this->forward($this->request->get['route']);
}
}
}
public function rewrite($link) {
$url_info = parse_url(str_replace('&', '&', $link));
$url = '';
$data = array();
parse_str($url_info['query'], $data);
foreach ($data as $key => $value) {
if (isset($data['route'])) {
if (($data['route'] == 'product/product' && $key == 'product_id') || (($data['route'] == 'product/manufacturer/info' || $data['route'] == 'product/product') && $key == 'manufacturer_id') || ($data['route'] == 'information/information' && $key == 'information_id')) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE `query` = '" . $this->db->escape($key . '=' . (int)$value) . "'");
if ($query->num_rows) {
$url .= '/' . $query->row['keyword'];
unset($data[$key]);
}
} elseif ($key == 'path') {
$categories = explode('_', $value);
foreach ($categories as $category) {
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE `query` = 'category_id=" . (int)$category . "'");
if ($query->num_rows) {
$url .= '/' . $query->row['keyword'];
}
}
unset($data[$key]);
}
}
}
if ($url) {
unset($data['route']);
$query = '';
if ($data) {
foreach ($data as $key => $value) {
$query .= '&' . $key . '=' . $value;
}
if ($query) {
$query = '?' . trim($query, '&');
}
}
return $url_info['scheme'] . '://' . $url_info['host'] . (isset($url_info['port']) ? ':' . $url_info['port'] : '') . str_replace('/index.php', '', $url_info['path']) . $url . $query;
} else {
return $link;
}
}
}
?>
OK, so what you want to say? With me it wasn't there so i changed that so it worked.
Yours work, right? Or you want to teach me something new?
Yours work, right? Or you want to teach me something new?
hi Anthony1632,
i try to fix the problem as per your attached .jpeg file. but problem is same hare.
please advice alternate.
thanks
Pawan
i try to fix the problem as per your attached .jpeg file. but problem is same hare.
please advice alternate.
thanks
Pawan
Check the following:
-Do you have a unique SEO word for your manufacturer?
-Do you have a extension activated to disable links as manufacturer?
-Did you cleared your system cache? (system/cache)
-Did you cleard your vqmod cache? (vqmod/vqcache)
You can send also a link here of your website.
-Do you have a unique SEO word for your manufacturer?
-Do you have a extension activated to disable links as manufacturer?
-Did you cleared your system cache? (system/cache)
-Did you cleard your vqmod cache? (vqmod/vqcache)
You can send also a link here of your website.
Who is online
Users browsing this forum: No registered users and 5 guests