I’m getting a Google Crawl Error (see below). Clearly this is due to the Force Download action, but when I look at the page code I don’t see the link anywhere.
Can somebody help me track this down?
http://www.williamsburgmemorialpark.com/about/Williamsburg_Memorial_Park_Map-dlk.php
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Clearly this is due to the Force Download action
It may be clear to you - how do you arrive at this conclusion?
Where on your site does this link appear - the force download you refer to?
David
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
OK - I have tracked this down
Your download link is williamsburgmemorialpark.com/about/Williamsburg_Memorial_Park_Map-dl.php
but the crawl error is from williamsburgmemorialpark.com/about/Williamsburg_Memorial_Park_Map-dlk.php
I suspect that this has been caused by previous incarnations of the action creating links like
about/Williamsburg_Memorial_Park_Map-dla.php, about/Williamsburg_Memorial_Park_Map-dlb.php, about/Williamsburg_Memorial_Park_Map-dlc.php etc.
When your site is recrawled this error should disappear as the correct link will be found.
In the meantime you could use a 301 redirect from about/Williamsburg_Memorial_Park_Map-dlk.php to about/Williamsburg_Memorial_Park_Map-dl.php
Did you do a File>Publish everything as some point to clear out old stuff?
D
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
I thought I did, but I’ll try it again. The weird ting is I can’t find that code anywhere when using Safari’s developer tools.
On 7 Oct 2012, 10:33 pm, DeltaDave wrote:
OK - I have tracked this down
Your download link is williamsburgmemorialpark.com/about/Williamsburg_Memorial_Park_Map-dl.php
but the crawl error is from williamsburgmemorialpark.com/about/Williamsburg_Memorial_Park_Map-dlk.php
I suspect that this has been caused by previous incarnations of the action creating links like
about/Williamsburg_Memorial_Park_Map-dla.php, about/Williamsburg_Memorial_Park_Map-dlb.php, about/Williamsburg_Memorial_Park_Map-dlc.php etc.
When your site is recrawled this error should disappear as the correct link will be found.
In the meantime you could use a 301 redirect from about/Williamsburg_Memorial_Park_Map-dlk.php to about/Williamsburg_Memorial_Park_Map-dl.php
Did you do a File>Publish everything as some point to clear out old stuff?
D
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
The weird ting is I can’t find that code anywhere when using Safari’s developer tools.
It may not exist any more.
D
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Google just crawled one of my websites again yesterday and it found another 404 error. Here’s the offending page:
http://www.williamsburgmemorialpark.com/extras/wmp_rules-dlj.php
Once again, I cannot find this code anywhere in the page code, which is located here. http://www.williamsburgmemorialpark.com/extras/rules.html or the Force Download action code:
<?php
/*
****************************************************************
* Force Download (PHP) action for Freeway
* version 1.0
****************************************************************
* Upload your site to a PHP enabled server to run this script
****************************************************************
*/
$filename = "wmp_rules.pdf";
if(ini_get('zlib.output_compression'))
ini_set('zlib.output_compression', 'Off');
$file_extension = strtolower(substr(strrchr($filename,"."),1));
if( $filename == ""){
header("HTTP/1.0 404 Not Found");
header ("Location: ".getenv('HTTP_REFERER') );
exit;
} elseif ( ! file_exists( $filename ) ) {
header("HTTP/1.0 404 Not Found");
header ("Location: ".getenv('HTTP_REFERER') );
exit;
};
if ($file_extension == "php" || $file_extension == "php3"){
exit;
}
switch( $file_extension )
{
case "pdf": $ctype="application/pdf"; break;
case "exe": $ctype="application/octet-stream"; break;
case "zip": $ctype="application/zip"; break;
case "doc": $ctype="application/msword"; break;
case "xls": $ctype="application/vnd.ms-excel"; break;
case "ppt": $ctype="application/vnd.ms-powerpoint"; break;
case "gif": $ctype="image/gif"; break;
case "png": $ctype="image/png"; break;
case "jpeg":
case "jpg": $ctype="image/jpg"; break;
default: $ctype="application/force-download";
}
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
header("Content-Type: $ctype");
header("Content-Disposition: attachment; filename="".basename($filename)."";" );
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($filename));
readfile("$filename");
exit();
?>
These errors definitely have something to do with the Force Download action, but I don’t know how to fix them.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
My answer remains the same - the link may not exist any more.
You are going to have to talk to Tim about this one.
D
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Tim3
(Tim)
October 12, 2012, 7:39am
8
Dave is correct. The dead link you’ve found in Google’s search was picked up when the site was last crawled. If you can’t wait for Google to crawl the site again I’d suggest adding a htaccess file with a 301 redirect so that the link is at least picked up and followed on your site.
Regards,
Tim.
On 11 Oct 2012, at 21:46, RavenManiac wrote:
Once again, I cannot find this code anywhere in the page code, which is located here. http://www.williamsburgmemorialpark.com/extras/rules.html or the Force Download action code:
FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Okay, I’ll keep an eye on it. Thanks guys.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options