Post by chongshengdz » Thu Dec 19, 2019 3:25 am

how to remove ?limit=* ?search=* from product seo url?
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


Active Member

Posts

Joined
Sat Apr 12, 2014 10:18 pm


Post by letxobnav » Thu Dec 19, 2019 3:48 am

Nothing 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)

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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by chongshengdz » Thu Dec 19, 2019 4:05 am

letxobnav wrote:
Thu Dec 19, 2019 3:48 am
Nothing 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)
thank you for you quick reply.
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


Active Member

Posts

Joined
Sat Apr 12, 2014 10:18 pm


Post by letxobnav » Thu Dec 19, 2019 4:12 am

better if you can do it via htaccess 301 redirection.
That is a dumb idea.

line 206, just change

Code: Select all

'href'        => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'] . $url)
to

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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by thekrotek » Thu Dec 19, 2019 4:17 am

Short version: you need to capture pairs like "limit=100" and turn it to "100" or "limit100" depending on your liking. Changes must be made in seo_url.php file to achieve this. .htaccess won't help you at all, not other modifications are necessary as well.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by letxobnav » Thu Dec 19, 2019 4:25 am

Nonsense, product url's should not have a limit, sort or order parameter.

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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by thekrotek » Thu Dec 19, 2019 4:32 am

letxobnav wrote:
Thu Dec 19, 2019 4:25 am
Nonsense, product url's should not have a limit, sort or order parameter.
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


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by chongshengdz » Thu Dec 19, 2019 4:35 am

letxobnav wrote:
Thu Dec 19, 2019 3:48 am
Nothing 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)
maybe you are using the older version of opencart.
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


Active Member

Posts

Joined
Sat Apr 12, 2014 10:18 pm


Post by chongshengdz » Thu Dec 19, 2019 4:38 am

thekrotek wrote:
Thu Dec 19, 2019 4:32 am
letxobnav wrote:
Thu Dec 19, 2019 4:25 am
Nonsense, product url's should not have a limit, sort or order parameter.
These are not product URLs, but search URLs instead.
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


Active Member

Posts

Joined
Sat Apr 12, 2014 10:18 pm


Post by thekrotek » Thu Dec 19, 2019 4:44 am

Most likely these URLs are from search results. Don't see any other reason.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by chongshengdz » Thu Dec 19, 2019 4:47 am

thekrotek wrote:
Thu Dec 19, 2019 4:44 am
Most likely these URLs are from search results. Don't see any other reason.
yes, you are right.

Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet


Active Member

Posts

Joined
Sat Apr 12, 2014 10:18 pm


Post by letxobnav » Thu Dec 19, 2019 10:51 am

the version 3.0.2.0 is already with ". $url".
so your solution is still not working.
yes, I said: remove the ". $url" part.

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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by chongshengdz » Thu Dec 19, 2019 3:05 pm

letxobnav wrote:
Thu Dec 19, 2019 10:51 am
the version 3.0.2.0 is already with ". $url".
so your solution is still not working.
yes, I said: remove the ". $url" part.

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.
you are using an older opencart version.
please check 3.0+ and then reply.

Electronic Components: integrated circuits, ic, semiconductors, transistors, thyristors, fuses, resistors, diodes, capacitors & more.
buy & sell transistors & mosfet


Active Member

Posts

Joined
Sat Apr 12, 2014 10:18 pm


Post by letxobnav » Thu Dec 19, 2019 3:08 pm

I am using V3 dumbass.

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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by xxvirusxx » Thu Dec 19, 2019 4:02 pm

chongshengdz wrote:
Thu Dec 19, 2019 3:05 pm
you are using an older opencart version.
please check 3.0+ and then reply.
Even Opencart 1.5.6.4 use that line....

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


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by paulfeakins » Thu Dec 19, 2019 7:22 pm

letxobnav wrote:
Thu Dec 19, 2019 3:48 am
url's
"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


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by letxobnav » Thu Dec 19, 2019 7:49 pm

that is indeed a helpful addition to this topic.

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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by paulfeakins » Thu Dec 19, 2019 7:52 pm

letxobnav wrote:
Thu Dec 19, 2019 7:49 pm
that is indeed a helpful addition to this topic.
Image

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by cedcommerceteam » Wed Dec 25, 2019 9:06 pm

chongshengdz wrote:
Thu Dec 19, 2019 4:35 am
letxobnav wrote:
Thu Dec 19, 2019 3:48 am
Nothing 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)
maybe you are using the older version of opencart.
the version 3.0.2.0 is already with ". $url".
so your solution is still not working.
Hi,
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


User avatar
Active Member

Posts

Joined
Wed Aug 09, 2017 9:02 pm
Who is online

Users browsing this forum: Adminas99999 and 150 guests