John Mueller from Google: JavaScript is required when redirecting Hashbang URL

Within the final installment of #AskGoogleWebmasters video collection, John Mueller solutions a query about AJAX scanning.

Right here is the query that has been submitted:

"What’s the present standing of #! AJAX creeping? How can I configure redirects? "

Mueller addresses each side of this query. His solutions for every are summarized within the sections under.

The standing of Hashbang URLs

Mueller addressed the primary a part of the query by giving a quick historical past lesson on AJAX exploration.

The AJAX crawling system was proposed by Google ten years in the past, on the very starting of the JavaScript websites.

As Mueller factors out within the video, ten years symbolize one-third of the Internet's existence. So, AJAX crawling may as nicely be thought of previous by present requirements.

AJAX crawl ultimately grew to become redundant as Google and different search engines like google and yahoo discovered the right way to make JavaScript pages the way in which a browser would.

Effectively, it seems that folks nonetheless use the AJAX exploration system. So, for individuals who ask for the present standing of hashbang URLs, Mueller says that no have to do something particular.

"We’ll merely attempt to render (URL hashbang) instantly," Mueller mentioned within the video.

Configuring redirects

Website homeowners might want to use JavaScript in the event that they want to configure redirects to a special URL construction. Server-side redirects usually are not attainable when it’s hashbang URL.

It’s not attainable to make use of server-side redirects with hashbang URLs as a result of something following the hash image just isn’t despatched to the server. As a substitute, it’s processed on the shopper facet in its browser.

Because of this it’s crucial to make use of JavaScript as a substitute of a typical 301 redirection (server facet).

As soon as the JavaScript redirects are configured, Googlebot will find them when reprocessing hashbang URLs and comply with the redirects appropriately.

Try Mueller's full reply to those questions within the video under: