You are here:  » Google Webmaster Tools pt/jump.php


Google Webmaster Tools pt/jump.php

Submitted by ajmboy on Wed, 2013-07-17 11:53 in

I.m seeing a buncg of urls like pt/jump.php?id=11920 in Google webmaster tools with a response code of 302.

"Google found a redirect on this page, but it didn't point to anything, so the Googlebot couldn't follow it. Make sure that all of your redirects are valid and not empty."

Any ideas?

Submitted by support on Wed, 2013-07-17 12:39

Hi ajmboy,

Whilst that shouldn't ever occur as an issue on your site, what this will be is googlebot requesting an old jump.php product URL that it learned previously when the product existed, but as it no longer exists the link is invalid, however we can improve how this is handled.

Either way, it's best to block /pt/ in your robots.txt, that will prevent crawlers from going into the associated Price Tapestry installation. To do this either add the following code to the end of your top level robots.txt, or create a new file if you don't already have one:

User-Agent: *
Disallow: /pt/

Further, jump.php can be modified to return 404 for invalid links, which will remove them from Google's crawl database. To do this, look for the following code at line 14:

  header("Location: ".$product["buy_url"]);

...and REPLACE with:

  if (!isset($product["buy_url"]))
  {
    header("HTTP/1.0 404 Not Found");
  }
  else
  {
    header("Location: ".$product["buy_url"]);
  }

Cheers,
David.
--
PriceTapestry.com

Submitted by richard on Tue, 2016-10-25 09:03

Hi David,

I am getting the Not Found error message on google webmaster. I have implemented the above solution.

Is there, however, a solution to remove pt from the url below so that I can honestly say that the problem has been resolved when I clear the error list on webmaster?

http://domain.co.uk/pt/product/CAFF%C9-DORZO-TROUSERS-Shorts-Girl-on-YOOXCOM.html

Thank you in advance.

Best regards,

Richard

Submitted by support on Tue, 2016-10-25 09:52

Hello Richard,

One option, if legacy or /pt/ pages have become inadvertently indexed would be to modify the /pt/product/ rewrite rule to simply return 410 (Gone).

To do this, edit /pt/.htaccess and look for the following rule at line 7:

RewriteRule ^product/(.*).html$ products.php?q=$1&rewrite=1&%{QUERY_STRING} [B,L]

...REPLACE with:

RewriteRule ^product/(.*).html$ - [NC,R=410,L]

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by richard on Tue, 2016-10-25 22:13

Many thanks.

Best regards

Richard