Forums / Setting Up Categories, Products, Attributes / Removing **&number_of_uploads=0**

Removing **&number_of_uploads=0**

Views: 886

Results 1 to 6 of 6
21 Apr 2016, 4:43 PM
#1
kcb410 avatar

kcb410

Zen Follower

Join Date:
Dec 2008
Location:
Toronto
Posts:
348
Plugin Contributions:
0

Removing **&number_of_uploads=0**

Hello All,

I've read several short threads on this but have found no definitive solution.

We're noticing people landing on product pages such as:
/index.php?main_page=product_reviews&products_id=2519&number_of_uploads=0

Search engines also seem to be indexing these "number_of_uploads=0" pages and the actual product page as shown below.
/index.php?main_page=product_info&products_id=2519
/index.php?main_page=product_reviews&products_id=2519&number_of_uploads=0

Is there a way to prevent "product_reviews&products_id=????&number_of_uploads=0" pages from being indexed and found?

Any comments would be appreciated. Thanks.

21 Apr 2016, 4:49 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Removing **&number_of_uploads=0**

If you use the /includes/init_includes/init_canonical.php from v155 on your v154 site, it will help tell search engines to ignore that number_of_uploads parameter when understanding search results.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Apr 2016, 5:09 PM
#3
kcb410 avatar

kcb410

Zen Follower

Join Date:
Dec 2008
Location:
Toronto
Posts:
348
Plugin Contributions:
0

Re: Removing **&number_of_uploads=0**

DrByte:

If you use the /includes/init_includes/init_canonical.php from v155 on your v154 site, it will help tell search engines to ignore that number_of_uploads parameter when understanding search results.

Thanks DrByte. I'll download 155 and give that file a try.

29 Apr 2016, 1:16 PM
#4
kcb410 avatar

kcb410

Zen Follower

Join Date:
Dec 2008
Location:
Toronto
Posts:
348
Plugin Contributions:
0

Re: Removing **&number_of_uploads=0**

DrByte:

If you use the /includes/init_includes/init_canonical.php from v155 on your v154 site, it will help tell search engines to ignore that number_of_uploads parameter when understanding search results.

I also have the option in Webmaster Tools>Crawl>URL Parameters to tell Googlebot not to crawl URLs with the parameter "number_of_uploads".

Are there any pages in Zen Cart with the "number_of_uploads" parameter that I would actually want indexed?

Any comments are appreciated. Thanks.

29 Apr 2016, 4:42 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Removing **&number_of_uploads=0**

The number_of_uploads parameter is only added when products have attributes, so that the system knows how many uploaded files have been attached so that it can loop through those for processing.

So, given that search engines are not uploading files for the purpose of placing an order, no.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Apr 2016, 5:39 PM
#6
kcb410 avatar

kcb410

Zen Follower

Join Date:
Dec 2008
Location:
Toronto
Posts:
348
Plugin Contributions:
0

Re: Removing **&number_of_uploads=0**

DrByte:

The number_of_uploads parameter is only added when products have attributes, so that the system knows how many uploaded files have been attached so that it can loop through those for processing.

So, given that search engines are not uploading files for the purpose of placing an order, no.

Thank you DrByte.