Mobile app version of vmapp.org
Login or Join
Si4351233

: Get search engines to index hash-based URLs I have a client who has website with multiple pages. Now, each page has tabbed content which is accessible through #. For example: example.com/page1#content1

@Si4351233

Posted in: #Hash #Indexing #Url

I have a client who has website with multiple pages. Now, each page has tabbed content which is accessible through #. For example:

example.com/page1#content1
example.com/page1#content2
example.com/page1#content3
example.com/page2#content1
example.com/page2#content2


Now, when search engines index they are indexing only example.com/page1/ and example.com/page2/. This creates a problem where we cannot have search engines point directly to the content within a given tab. What we want is for search engines to show links that takes users directly to (say) example.com/page1#content3.

Now, I don't think Google can index such #-based content on its own. So, I have two ideas in my mind:


Add these # based URLs in the sitemap - But I have heard that search engines drop anything after the #. So this might not work.
Add vanity URLs in the sitemap and do a 301 redirect to the hashed URLs. For example, I can add example.com/page1/content3/ in the sitemap and then have it redirected is to example.com/page1#content3.


What do you recommend how should I solve this problem? We don't want to re-architect the site pages.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Si4351233

3 Comments

Sorted by latest first Latest Oldest Best

 

@Mendez628

I think this is the issue of Hashbang. Check this article of the usage of "#" with "!" in the urls. I hope It will help.

10% popularity Vote Up Vote Down


 

@Eichhorn148

As it was mentioned in comments, the simplest possibility to address tabs with urls, is to address them with parameters instead of hashes, like www.example.com/page-1?tab=2.
While you correctly said, hashes will not be passed through the server to Google, parameters will.

A kind of solution is described under css-tricks.com/better-linkable-tabs/

10% popularity Vote Up Vote Down


 

@YK1175434

You can manually define them in the sitemap or use google webmaster tools to flag them as such or you can request reindexing of the tabbed content you mentioned in your post.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme