homepage Welcome to WebmasterWorld Guest from 54.234.163.230
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

    
Does Google Index # URLs
E.g. example.com/#!/page
marktraffic




msg:4472136
 1:58 pm on Jul 3, 2012 (gmt 0)

Hi there,

I am seeing lots of conflicting information about this on the web - some say Google do index this, some say that they don't. Hope I can find a conclusive answer here!

Generally hashtag URLs function like this: [dulas.org.uk...]

The hashtag essentially loads a different view of the code in this example. The 'hidden' content within the other javascript tabs is always visible in the source code of the main page (i.e. [dulas.org.uk...]

I can understand why Google would not index this as a unique page - all the same content is present on each, but loads a slightly different way.

However, in the example I am talking about, the site actually loads a totally new page but uses javascript to do so. So example.com/#!/page1 is totally different to example.com/#!/page2 - unlike the above example, none of the source for page 1 is visible when you load page 2.

Does anybody have experience and examples of hashtag URLs being indexed? I have lots of people saying they guess this and that, but nobody seems to have an actual report of this working.

Thanks,

Mark

 

rocknbil




msg:4472210
 4:50 pm on Jul 3, 2012 (gmt 0)

I'm pretty sure this

resource#fragment-identifier

doesn't, but this

resource#!fragment-identifier

could. I avoid either technique completely (unless the first is just meant to be an anchor on the same page).

<a href="the-real-resource.html" onclick="return some_function(this.href);">

Anyway start reading here [developers.google.com], there are ways to make Ajax content index in G.

marktraffic




msg:4472214
 5:00 pm on Jul 3, 2012 (gmt 0)

Thanks very much Rocknbil, really appreciate your reply. In case other readers find this thread, I have also found this resource which seems quite useful if you're in the same situation as me - [support.google.com...]

Basically, it seems far from ideal, but I've got this to deal with so I'm looking for a way to make it work! Turns out that it does, but you'll have a shed load of hoops to jump through first!

tedster




msg:4472304
 9:26 pm on Jul 3, 2012 (gmt 0)

You're not talking about any old hash tag here - it's a "hash bang" which is Google's own invention!This is the way they've created to code AJAX links to make them crawlable, which is exactly you have described. Google Reference [developers.google.com]

Many sites have had such URLs indexed properly on Google (including Twitter up until the end of May this year when they changed their technology.)

Hash tags without the bang [!] that are used the original way to indicate page fragment identifiers are also indexed, and sometimes inserted into Google's description snippet so people can go directly to the part of the page that meets their query.

Yes - when you use AJAX you do need to jump through a lot of hoops to get complete indexing!

marktraffic




msg:4472453
 8:45 am on Jul 4, 2012 (gmt 0)

Thanks Tedster, I did eventually find some info on the hash bang so I've forwarded to the developer team - who are delighted that they now have some new hoops to jump through! Appreciate your help - first time I've used this forum as somebody asking a question, and very impressed with the speed of response and useful information I've received.

Once again, thank you!

bramley




msg:4475916
 10:05 pm on Jul 15, 2012 (gmt 0)

A bit off-topic but might be of interest to somebody. I added a 'report this' on member articles that was only onclick - and i get lots of mails from googlebot reporting verious articles every day! Only the Google bot.

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