Welcome to WebmasterWorld Guest from 54.162.21.214

Forum Moderators: open

Message Too Old, No Replies

Google shows 404 for external file on cached page

     
5:37 pm on Jun 3, 2012 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 11, 2005
posts:513
votes: 0


I have a menu that uses Ajax to load links in a remote file. I use window.location.hostname to reference that file, since it is called for from different directories on my site.

I've been having ranking issues with Google, and in researching this, Google's cache of pages with this menu says it can't find the file and is showing a 404.

I'm using "http://"+window.location.hostname+"/directory/file.htm" and Google's cache says /directory/file.htm doesn't exist.

Seems to work fine on all browsers, what do I need to do so that Google can locate this file?
6:18 am on June 4, 2012 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10553
votes: 13


have you tried a fetch as googlebot in GWT?
perhaps the user agent used to generate the cached page isn't processing the javascript.
7:12 pm on June 4, 2012 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 11, 2005
posts:513
votes: 0


I'll try fetch as Googlebot and see what shows up, thanks for the suggestion I hadn't thought of that.