Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Problems
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 15th, 2011, 05:36 AM
macfink macfink is offline
 
Join Date: Feb 2011
Posts: 685
Default Bad indexing

Hi Eric,

As you can see below google is indexing my pages, but including brand and price filter on the end? I have put a block on the ?brand & ?price in the robot txt file to stop duplicate content being indexed.

This product isnt even branded Anon Googles?
http://www.freakfish.co.uk/surf-prod...d=Anon+Goggles.

This is the site index
http://webcache.googleusercontent.co...ient=firefox-a


Also if you look here theres a disaster with duplicate content. Why is the store allowing urls to be indexed with random brands and prices added to the end of the url??

http://www.google.ca/search?q=site%3...w=1600&bih=770
__________________
ID 30949
Website:
http://www.freakfish.co.uk/

Last edited by macfink : September 15th, 2011 at 05:43 AM.
  #2  
Old September 15th, 2011, 08:53 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

If you don't want any pages with query strings in the URL to be indexed, then add a noindex conditional statement to your VIEWs <head> elements.

HTML Code:
<?php if (!empty($_GET)) : ?>
<meta name="robots" content="noindex, nofollow" />
<?php endif; ?>
That basically says if there is a query string available in the URL, show the noindex, nofollow meta tag. You can put that in your CATEGORY PAGE and PRODUCT PAGE <head> elements (found in the View menu).
  #3  
Old September 20th, 2011, 10:08 AM
macfink macfink is offline
 
Join Date: Feb 2011
Posts: 685
Default

Hi Eric,

Thanks for the reply.

Do i jsut add that code to the end of this?

<title>[product.name] | [category.name] | </title>
<meta name="description" content="[product.description]" />
<meta name="keywords" content="<?php echo str_replace(' ', ',', $product->name); ?>,<?php echo str_replace(' ', ',', $category->name); ?>" />

like this?
<?php if (!empty($_GET)) : ?>
<meta name="robots" content="noindex, nofollow" />
<?php endif; ?>

Also i add this under product detail ---VIEWs <head> elements?

Also the category page shall i delete this in

[store.if word="on"][store.get param="word"] | [/store.if]
[store.if tags="on"][store.get param="tags"] | [/store.if]
[store.if price="on"]Price is [store.get param="price"] | [/store.if]
[store.if brand="on"][store.get param="brand"] | [/store.if]
[store.if merchant="on"][store.get param="merchant"] | [/store.if]
[category.name] |

and add this

<?php if (!empty($_GET)) : ?>
<meta name="robots" content="noindex, nofollow" />
<?php endif; ?>

VIEWs <head> elements?
Cheers
__________________
ID 30949
Website:
http://www.freakfish.co.uk/

Last edited by macfink : September 20th, 2011 at 10:16 AM.
  #4  
Old September 20th, 2011, 10:15 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi
Quote:
Originally Posted by macfink View Post
Do i jsut add that code to the end of this?
Yes.

Quote:
Originally Posted by macfink View Post
Also i add this under product detail ---VIEWs <head> elements?
Yes.

Eric
  #5  
Old September 20th, 2011, 10:48 AM
macfink macfink is offline
 
Join Date: Feb 2011
Posts: 685
Default

Also the category page shall i delete this

[store.if word="on"][store.get param="word"] | [/store.if]
[store.if tags="on"][store.get param="tags"] | [/store.if]
[store.if price="on"]Price is [store.get param="price"] | [/store.if]
[store.if brand="on"][store.get param="brand"] | [/store.if]
[store.if merchant="on"][store.get param="merchant"] | [/store.if]
[category.name] |
__________________
ID 30949
Website:
http://www.freakfish.co.uk/
  #6  
Old September 20th, 2011, 10:50 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Why would you delete that stuff? It's just stuff that will appear in the <title> tags. It has nothing to do with indexing.

If you don't want any category page that contains a query string to be indexed, simply add the code I posted above. That will solve the problem for any type of page.

Eric
  #7  
Old September 21st, 2011, 03:30 AM
macfink macfink is offline
 
Join Date: Feb 2011
Posts: 685
Default

Quote:
Originally Posted by Eric View Post
Hi

Why would you delete that stuff? It's just stuff that will appear in the <title> tags. It has nothing to do with indexing.

Eric
Hi Eric,


[store.if price="on"]Price is [store.get param="price"] | [/store.if]
[store.if brand="on"][store.get param="brand"] | [/store.if]
[store.if merchant="on"][store.get param="merchant"] | [/store.if]

I was on about deleting this, does [store.if brand="on"][store.get param="brand"] | [/store.if] produce the brand at the end of the URL??

http://www.freakfish.co.uk/surf-prod...d=Anon+Goggles.

Just thought it might?
__________________
ID 30949
Website:
http://www.freakfish.co.uk/
  #8  
Old September 21st, 2011, 08:17 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

None of that code affects your URL. It only affects your <title> tags.

Eric
  #9  
Old March 7th, 2014, 06:22 AM
bombpetite bombpetite is offline
 
Join Date: Jan 2014
Posts: 53
Default

Hi,

Just wanted to double check where exactly I should insert this code to stop URLs with query string from being indexed:

Quote:
<?php if (!empty($_GET)) : ?>
<meta name="robots" content="noindex, nofollow" />
<?php endif; ?>
Here is my Category Page code

Quote:
<!-- Sort filters -->
<div class="dffltrs">
<form method="get">
<span class="dflside">
Items per page
<?php echo datafeedr_tools()->form_select("ppp",
array(
"54" => "54",
"70" => "70",
"98" => "98",
)); ?>
</span>
<span class="dfrside">
Sort by
<?php echo datafeedr_tools()->form_select("sort",
array(
"-price" => "Price (high to low)",
"price" => "Price (low to high)",
)); ?>
</span>
<span class="dfrsidebutton">
<input type="submit" value="Go" class="dfsbmt" />
</span>
<div class="clearingdiv">&nbsp;</div>
</form>
</div>
<!-- /Sort filters -->



<!-- Product List -->
<div class="pl">
[product.each]
<div class="t1 col3">
<div class="bdr">
<div class="thmb"><a href="[product.link]" title="[product.name]">[product.image tag='1' direct='1']</a></div>
<h2><a href="[product.link]" title="[product.name]">[product.brand]</a></h2>
<div class="prc">[product.merchant]</div>
<?php if ($product->saleprice > 0 && $product->saleprice < $product->price) { ?>
<div class="prc">
<span style="text-decoration: line-through;">[product.currency mode='sign'][product.price]</span>
<span style="color:#a91101;">Now [product.currency mode='sign'][product.saleprice]</span>
</div>
<?php } else { ?>
<div class="prc">
[product.currency mode='sign'][product.price]
</div>
<?php } ?>
<div class="clearingdiv"> </div>
</div>
</div>
[product.end]
<div class="clearingdiv"> </div>
</div>
<!-- /Product List -->

<div class="pgr">
[pager.first text='&lt;&lt;first ' alt='']
[pager.prev text='&lt;previous ' alt='']
[pager.pages delim=' ']
[pager.next text=' next&gt;' alt='']
[pager.last text=' last&gt;&gt;' alt='']
</div>
  #10  
Old March 7th, 2014, 08:19 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

This code:

PHP Code:
<?php if (!empty($_GET)) : ?>
<meta name="robots" content="noindex, nofollow" />
<?php endif; ?>
Should go in the following places:

The Factory > Your Store > VIEWS > STORE FRONT PAGE > Default > View menu > View <head> Elements

The Factory > Your Store > VIEWS > CATEGORY PAGE > Default > View menu > View <head> Elements

Eric
  #11  
Old March 7th, 2014, 11:09 AM
bombpetite bombpetite is offline
 
Join Date: Jan 2014
Posts: 53
Default

Got it, thanks Eric.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:17 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.