Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm having some odd problems that are apparently being generated by Google crawler. Bing isn't these errors, so it's kind of confusing. The problem seems to be because of relative links.

Google crawler reports this URL as something it found:

http://example.com/event_comments/ChupacabraCon/eedit/event_comments/Siege_of_Augusta/event_comments/Genghis_Con_XXXV/91

However that isn't a URL thats generated by the site. The one below is:

 http://example.com/event_comments/Genghis_Con_XXXV/91

I'm puzzled why Bings crawler isn't having a problem when Google is. Do I need to change all of the relative URLs to strict? Is there another work around?

share|improve this question
3  
Google shouldn't get confused by relative URLs, unless perhaps there are other issues with your page. I see that you've used the BASE element (from which relative URLs are based). However, AFAIK this should take an absolute URL, whereas you have specified a root-relative URL /. –  w3d Jan 22 at 16:28
1  
@w3d Nicely spotted - see this. Seems like a logical explanation/answer to me (maybe should be entered below). –  dan Jan 22 at 16:39
add comment

1 Answer

up vote 4 down vote accepted

As mentioned in comments, Google shouldn't get confused by relative URLs, unless perhaps there are other issues with your page.

I see that you've used the BASE element:

<base href='/'/>

The href attribute determines the base URL for the page - the URL from which relative URLs are based. However, according to the spec this should take an absolute URL, whereas you have specified a root-relative URL /. Modern browsers (FF4+ for instance) can cope with root-relative base URLs, however, this behaviour may not be universal and is possibly where Google is tripping up.

The self closing / can also be omitted.

<base href="http://findgamers.us/event_comments/Genghis_Con_XXXV/91">
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.