Mobile app version of vmapp.org
Login or Join
Correia994

: Will Google index a React JS SPA if I can't add a rewrite rule? The React SPA is set up to dynamically pull content from a server based on the URL. There is an index.html file sitting in

@Correia994

Posted in: #Googlebot #Seo #SinglePageApplication

The React SPA is set up to dynamically pull content from a server based on the URL. There is an index.html file sitting in a directory that routes to the correct content from the page requests. The URLS are set up to look like this www.example.com/articles/#/title1. A site map, which lives at example.com/articles/sitemap.txt, has been submitted with all of the URLS in the appropriate format. As of a week in only the page at /articles has been indexed.

In the particular environment deployed the rewrite rules can not be changed.

"Fetch and Render as Google" in Search Console appears not to work with URLs that contain a #.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Correia994

1 Comments

Sorted by latest first Latest Oldest Best

 

@Si4351233

Google should be able to index your AJAX driven content. As of 14 October 2015 Google depreciated its AJAX Crawling Proposal which was made back in 2009 as at the time the Googlebot was incapable of understanding javascript generated dom objects on the page. Since then the Googlebot has been enhanced and can interpret the page just as any modern web browser would. Google updated their Technical Webmaster Guidelines to reflect this change and now recommend against disallowing the Googlebot access to crawl CSS or JS files for your site.

The fetch and render as Google may not work as expected however unless there is something unusual about how the javascript serves up your HTML to the browser over an AJAX connection it should work for the Googlebot.

You can see more information on the depreciation of the AJAX Crawling Scheme at Google's Webmaster Blog.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme