Mobile app version of vmapp.org
Login or Join
Jamie184

: #! in URL: Is there any merit to using the shebang (#!) in URL if there is no AJAX-loaded content, but otherwise dynamic page generation? Is there any reason, possibly SEO related, to using

@Jamie184

Posted in: #Google #Seo #Url #UrlRewriting

Is there any reason, possibly SEO related, to using the shebang (aka "hashbang") in rewritten URLs on a dynamic site, but one that does not use AJAX?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Jamie184

3 Comments

Sorted by latest first Latest Oldest Best

 

@Lee4591628

If I got you right, you are not generating server-side content. Well, the hashbang is intended to be used local.

It has nothing to do with server. I mean, hashbang and beyond in URL isn't sent to server by browser. It is used by browser to be resolved locally.

Its first know use, AFAIK, was with named anchors. But with javascript, you can use them to display page with an enhanced layout, without hurting accessibility, like in a tabbed menu or a few-steps process index for example.

10% popularity Vote Up Vote Down


 

@Welton855

It depends a bit on what you mean with "dynamic page generation."

If you are dynamically generating your pages on the server side (eg. a PHP script) and sending them to all users that way, then you wouldn't need to additionally add the #! to the URLs, since the content doesn't get compiled by the client (it's already sent that way by the server).

If you are dynamically generating your pages on the client side (using JavaScript, Flash, Silverlight, etc), and you're able to serve a copy generated on the server side, then using the AJAX-crawling techniques might make sense. If you're not able to generate a copy of the pages on the server side (and not planning on adding that functionality), then there would be no advantage by using #! in your URLs (compared to just using # ).

10% popularity Vote Up Vote Down


 

@Yeniel560

Yes, but only provided that the content you display is not part of the HTML source returned.

If, for example, you had 3 divs representing tabs and you show/hide them on clicking a tab, then you should not use #! because the content is already in the HTML. You wouldn't be able to return a different page on the "escaped fragment" URL.

If you are generating HTML on-the-fly, then you could use the #! to bring the user back to the exact state they were at.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme