Mobile app version of vmapp.org
Login or Join
Ann8826881

: Submit example.com/#!/page URLs to Google On a HTML5 website, there is a single page, index.php . Its code contains other 5 pages. An AJAX navigation is used, so the URL of other page looks

@Ann8826881

Posted in: #Ajax #Google #Seo #Sitemap

On a HTML5 website, there is a single page, index.php . Its code contains other 5 pages.

An AJAX navigation is used, so the URL of other page looks like example.com/#!/page_Example.

I had tried to submit to Google many addresses of this kind using a XML sitemap, but Google indexes only the main page.

Also, I've made some 301 redirects from example.com/Example to example.com/#!/page_Example, and submitted them, but the main page is still the only one indexed.

How could I sumbit those URLs to Google?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Ann8826881

2 Comments

Sorted by latest first Latest Oldest Best

 

@Carla537

According to Google, you should list your AJAX URLs in a sitemap exactly as you say you've done:


"4. Consider updating your Sitemap to list the new AJAX URLs

Crawlers use Sitemaps to complement their discovery crawl. Your Sitemap should include the version of your URLs that you'd prefer to have displayed in search results, so in most cases it would be example.com/ajax.html#!key=value.


At this point, I'll have to assume that the problem is somewhere else.

In particular, keep in mind that the method Google uses to fetch AJAX pages is not the same as how normal browsers do it, and that it requires extra server-side support (parsing the _escape_fragment_ query parameter and serving the appropriate server-side generated version of the AJAX content based on it). If your index.php is not set up to do that, Google will never even see you AJAX content, and thus cannot index it.

To start with, I'd suggest using the Fetch as Googlebot feature of the Google Webmaster Tools to see if Google can even load your AJAX content. If it cannot, follow the instructions here to set up your site so that it can.

10% popularity Vote Up Vote Down


 

@Sims2060225

Everything in a URL after the hash (#) is a fragment. This is data that is ONLY processed client-side and not even sent directly to the server or processed. There is no way to directly submit this to Google.

Google has procedures to help get around these limitations:
developers.google.com/webmasters/ajax-crawling/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme