General questions about #! hashbang urls and I use them correctly

Now I am writing a website that includes a fairly large gallery. On the first page of the gallery, the user displays a bunch of thumbnails with the URL: website.com/gallery.php

When they click the thumbnail, if javaScript is turned off, will it follow the url in href and go to the page called gallery.php? img = 67. If javaScript is enabled, the href click will not be executed, instead it will execute an ajax request to display a larger image and some text about it. URL changes to gallery.php #! Img = 67. The back button will return you to the thumbnails by pressing f5, a large image with text will be displayed. If someone copies the address using #! and sends it to someone, they will receive the same image (provided that the recipient has javaScript enabled).

My question is: did I correctly parse it so that Google would index individual gallery pages? Will Google index them twice, once using? Img = 67 and once C #! and if it is so bad? I use javaScript / Ajax to preload large images after loading a thumbnail page for speed. I have read a lot of negative reviews about the use of Hasbang azapines recently and am wondering if you can consider that this can be used here?

+3
source share
3 answers

Google ?img=67 #!, . Google , :

  • <meta name="fragment" content="!"> <head>
  • /?_escaped_fragment_=, "HTML-" #! <A>.

, , /?_escaped_fragment_=img=67, HTML . , GoogleBot Javascript. URL #! Google (, #! ?_escaped_fragment_=), Javascript.

+4

( http://isolani.co.uk/blog/javascript/BreakingTheWebWithHashBangs) - #! OnClick(). , , shitty #!.

This means that the server requires additional work, as the server needs to support both versions (Ajax version and regular version), but I think it costs. These #! so ugly.

+1
source

Source: https://habr.com/ru/post/1791361/


All Articles