for example:
https://example.com/seo-url?limit=25
https://example.com/seo-url?limit=50
https://example.com/seo-url?limit=75
https://example.com/seo-url?limit=100
https://example.com/seo-url?search=opencart
how to redirect and remove those parts (?limit=25,?limit=50,?limit=75,?limit=100,?search=opencart) from product seo url?
this is not google seo friendly, google webmaster will report it as duplicate contents.
Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet
Code: Select all
'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'] . $url)
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
thank you for you quick reply.letxobnav wrote: ↑Thu Dec 19, 2019 3:48 amNothing to do with SEO url's, that is because the catalog controller adds the $url variable to the product urls which it should not.
Code: Select all
'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'] . $url)
but it is starting from line 162 on version 3.0.2.0
after removing those codes, the urls are still working.
better if you can do it via htaccess 301 redirection.
Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet
That is a dumb idea.better if you can do it via htaccess 301 redirection.
line 206, just change
Code: Select all
'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'] . $url)
Code: Select all
'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'] )
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
These are not product URLs, but search URLs instead.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
maybe you are using the older version of opencart.letxobnav wrote: ↑Thu Dec 19, 2019 3:48 amNothing to do with SEO url's, that is because the catalog controller adds the $url variable to the product urls which it should not.
Code: Select all
'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'] . $url)
the version 3.0.2.0 is already with ". $url".
so your solution is still not working.
Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet
you can check your google webmaster center to see it under "Coverage > Alternate page with proper canonical tag".
i don't know why google have those urls.
Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet
https://demo.opencart.com/index.php?rou ... 0?limit=75
https://demo.opencart.com/index.php?rou ... 0?limit=25
https://demo.opencart.com/index.php?rou ... 0?limit=50
https://demo.opencart.com/index.php?rou ... ?limit=100
Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
yes, I said: remove the ". $url" part.the version 3.0.2.0 is already with ". $url".
so your solution is still not working.
when in catalog view with display limit set or sort order set, the url's of the products copy those parameters over, they should not.
Then again, the canonical link on the product page itself is ok but that does not make the links ok.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
you are using an older opencart version.letxobnav wrote: ↑Thu Dec 19, 2019 10:51 amyes, I said: remove the ". $url" part.the version 3.0.2.0 is already with ". $url".
so your solution is still not working.
when in catalog view with display limit set or sort order set, the url's of the products copy those parameters over, they should not.
Then again, the canonical link on the product page itself is ok but that does not make the links ok.
please check 3.0+ and then reply.
Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Even Opencart 1.5.6.4 use that line....chongshengdz wrote: ↑Thu Dec 19, 2019 3:05 pmyou are using an older opencart version.
please check 3.0+ and then reply.
And he tell you to delete $url, not to add.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
"To start off, use all-caps for “URL” except of course in the case of jotting down notes, texting, or other casual communications. For web, print, and official correspondence, spell “url” with all caps = URL.
And when it comes to plural, or more than one URL, don’t use the apostrophe. More than one URL = URLs."
Source: https://www.daylaborproofing.com/urls-v ... -use-urls/
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Hi,chongshengdz wrote: ↑Thu Dec 19, 2019 4:35 ammaybe you are using the older version of opencart.letxobnav wrote: ↑Thu Dec 19, 2019 3:48 amNothing to do with SEO url's, that is because the catalog controller adds the $url variable to the product urls which it should not.
Code: Select all
'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'] . $url)
the version 3.0.2.0 is already with ". $url".
so your solution is still not working.
If you have an eCommerce website, SEO is very important part of it. Website runners with even a little consideration to SEO approaches would agree that links and URLs are top specifiers of ranking on the SERPs. And SEO friendly URLs influence the ranking a lot. Following are the steps to change URLs -
1. Log into your OpenCart Admin panel.
2. Go to System>>Settings and click on the Server tab.
3. Here on this interface you will find “Use SEO URLs” option.
4. Select “Yes” option on the “Use SEO URLs” field.
5. Hover on the little question mark symbol in the blue circular background. It will display an info. Read it.
6. Login into your FTP access. Here I am using FileZilla for accessing my FTP.
7. Find the .htaccess.txt file and rename it to just .htaccess.
8. Log into your Admin panel and Go to “Catalog>>Products”.
9. Click Edit on any of the products whom you want to assign an SEO URL.
10. On the page that appears, Click on the “Data” tab.
11. Scroll down till you find SEO URL field.
12. Go to Catalog>>Categories
13. Click Edit button on any of the Categories from the Category list.
14. Click on Data tab and scroll down till you find the SEO URL field.
15. Customize it as you did for the products.
16. Go to Catalog>>Information
17. Click Edit button on any of the Pages from the list.
18. Click on Data tab and scroll down till you find the SEO URL field.
19. Customize it as you did for the products and Categories.
Call us at : (+91) -8765210318 , Skype: live:carlmorgan.cedcommerce , Email: support@cedcommerce.com
CedCommerece : Officail Opencart Partners
CedCommerce Official : www.cedcommerce.com
Opencart Services : www.cedcommerce/opencart-services.com
Sell On various Marketplace Integration : Opencart-Extensions
Magenative Mobile App/IOS Development : magenative.com
Webinar : Power up Your holiday season marketing with the Automation tool
Users browsing this forum: Semrush [Bot] and 83 guests