If this is your first visit, check our documentation. To post, register or login.

index.php

Started by renz on 16 May 2013, 2:25 PM · Views: 1,635

Results 1 to 5 of 5
16 May 2013, 2:25 PM
#1
renz avatar

renz

Zen Follower

Join Date:
Jun 2006
Posts:
439
Plugin Contributions:
0

Post #1 by renz

Hi can anyone tell me if this code is supposed to be in the root index.php as I am not quite sure what it does and I believe an SEO company put it there.
Thanks
Regards
RR

<?php
if($_GET['cgi-bin'] || $_GET['3Dshopping_cart'] || $_GET['sort'] || $_GET['tag'] || $_GET['language'] || $_GET['currency'] || $_GET['disp_order'] || $_GET['m1track'] || $_GET['sort'] || $_GET['alpha_filter_id'] || $_GET['filter_id']) {
header("X-Robots-Tag: noindex,noarchive,nosnippet");
}
if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
header("X-Robots-Tag: noindex,noarchive,nosnippet");
}

16 May 2013, 7:37 PM
#2
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #2 by rbarbour

I return nothing like that via the stock code.

If I remember correctly this X-Robots-Tag, is used by google webmaster tools.

16 May 2013, 11:38 PM
#3
renz avatar

renz

Zen Follower

Join Date:
Jun 2006
Posts:
439
Plugin Contributions:
0

Post #3 by renz

rbarbour:

I return nothing like that via the stock code.

If I remember correctly this X-Robots-Tag, is used by google webmaster tools.

Hi Ya,

thanks for the reply, I searched the web for this tag and found the following information https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag unfortunately it's a little foreign to me and does not help me decide what to do with my discovery of the code.

Do you recommend it remains or should it be removed..I am thinking it's affecting my rankings? Pls see the source code of my websites home page.

<meta http-equiv="imagetoolbar" content="no" /> <meta name="author" content="The Zen Cart™ Team and others" /> <meta name="generator" content="shopping cart program by Zen Cart™, <http://www.zen-cart.com> eCommerce" /> <meta name="robots" content="noindex,follow,nosnippet,noarchive"> <meta name="msvalidate.01" content="5B923E549C227075AFA1A250C6FEAAC9" /> <meta name="robots" content="noodp,noydir" /> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

Thanks & Regards
RR

16 May 2013, 11:51 PM
#4
renz avatar

renz

Zen Follower

Join Date:
Jun 2006
Posts:
439
Plugin Contributions:
0

Post #4 by renz

Renz:

Hi Ya,

thanks for the reply, I searched the web for this tag and found the following information https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag unfortunately it's a little foreign to me and does not help me decide what to do with my discovery of the code.

Do you recommend it remains or should it be removed..I am thinking it's affecting my rankings? Pls see the source code of my websites home page.

<meta http-equiv="imagetoolbar" content="no" /> <meta name="author" content="The Zen Cart™ Team and others" /> <meta name="generator" content="shopping cart program by Zen Cart™, <http://www.zen-cart.com> eCommerce" /> <meta name="robots" content="noindex,follow,nosnippet,noarchive"> <meta name="msvalidate.01" content="5B923E549C227075AFA1A250C6FEAAC9" /> <meta name="robots" content="noodp,noydir" /> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

Thanks & Regards
RR

** Actually having said all that, this only appears on pages wit https: before the url (the normal home page is as below)

<meta http-equiv="imagetoolbar" content="no" /> <meta name="author" content="The Zen Cart™ Team and others" /> <meta name="generator" content="shopping cart program by Zen Cart™, <http://www.zen-cart.com> eCommerce" /> <meta name="msvalidate.01" content="5B923E549C227075AFA1A250C6FEAAC9" /> <meta name="robots" content="noodp,noydir" /> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

Does this have any effect on my web site?

Thanks again RR

17 May 2013, 1:17 AM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #5 by gjh42

There are pages you wouldn't want indexed, either because they are not useful as search engine fodder or because they would be duplicate content. Some of those look like they are for another cart platform - Zen Cart does not use 3Dshopping_cart or m1track in URLs, and I am not sure about a couple of others. URLs with 'language' in them may be alternate/duplicate content of a base language page.

Recent versions of Zen Cart use canonical URLs which will eliminate much if not all of the need for this kind of manipulation.