homepage Welcome to WebmasterWorld Guest from 54.166.105.24
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Google shows 404 for external file on cached page
AndyA




msg:4460974
 5:37 pm on Jun 3, 2012 (gmt 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?

 

phranque




msg:4461098
 6:18 am on Jun 4, 2012 (gmt 0)

have you tried a fetch as googlebot in GWT?
perhaps the user agent used to generate the cached page isn't processing the javascript.

AndyA




msg:4461336
 7:12 pm on Jun 4, 2012 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved