Questions tagged [hashbang]

The hash-bang "#!" is used in AJAX-based web applications to indicate that it has web crawler support. For the shell script shebang ("#!" at the start of a file), use the [shebang] tag instead.

"Hash-bang" is a nickname for the sequence "#!" (octothorpe, exclamation mark). It is used

  • in URLs to indicate that this is a AJAX-based web application with web crawler support

  • in Unix shell scripts to identify the executable that should be used to parse this file, e.g.

    #!/bin/bash
    #!/usr/bin/perl -w
    

    to run a script with the bash shell or with Perl (in warnings mode) respectively. Use the tag for these questions instead.

157 questions
0
votes
1 answer

Strange error while redirecting using .htaccess

Long story short I'm trying to redirect: http://example.com/?_escaped_fragment_=/onetwothree to something like this: http://example.com/serve.php?_escaped_fragment_=/onetwothree I'm using following .htaccess code: # Enable Rewriting RewriteEngine…
Chaitanya
  • 1,440
  • 1
  • 14
  • 26
0
votes
1 answer

AngularJS - Fallback to hashtag from HTML 5 mode

I am developing Angular app with the html5mode set to true. Everything works great, and it even has responsive template. During testing however I experienced terrible bug with the browsers not supporting the History API. Imagine I have url…
Martin Hlavňa
  • 648
  • 7
  • 20
0
votes
2 answers

Link to a section of external page without hash '#' (html5 history?)

any advice about possible different methods to link to a section of an external page of the same site without use hash '#'? I can do that with ease if I'm in a full js/ajax scenario, but searching some ideas if it's possible to use 'cleaner' urls…
Dee
  • 3,185
  • 10
  • 35
  • 39
0
votes
2 answers

HTML Hash issue - IE8

Please have a time to read this post. So, my web application is appending (/mypage to /mypage#hash) hash programmatically if it saw there's no hash yet, after logging in. In other browsers, even if the page has just appended a hash, when I click on…
kenicky
  • 431
  • 4
  • 14
0
votes
1 answer

Does history.pushState really cope with hash bang urls?

Lately, I read a lot about hash-bang urls versus history.pushState to build SEO-friendly AJAX-Sites. It seems that everyone agrees that pushState is the better approach so I want to use it. Here is the problem: I have a Single-Page Website and (on…
Fluchtpunkt
  • 447
  • 5
  • 11
0
votes
1 answer

How do I make my hosting detect _escaped_fragment_ and fetch the corresponding HTML?

I have an AJAX site and I'm using hashbangs (#!) in my urls with the intention of then providing the correct HTML versions when google bots replace the #! with ?_escaped_fragment_. How do I go about routing/proxying/redirecting the url with…
Eric
  • 2,004
  • 6
  • 23
  • 33
0
votes
1 answer

Hashbang, prereder.io and the robots

I am a little confused about how the search bots are going to crawl my ajax site. http://www.example.com contains 3 links #!/abc #!/xyz #!/123 I have the included in the head of my page so the robots should…
Alex Edwards
  • 1,613
  • 3
  • 24
  • 48
0
votes
1 answer

How to redirect old hash URLs to hash bang in Ember.js?

I use this method: Hashbang URLs using Ember.js And now i have website with hashbangs. But people come also to old URLs with only hash, but without hashbang. So how to change URL from only hash to hashbang if someone visits the old style url?
Tom Smykowski
  • 25,487
  • 54
  • 159
  • 236
0
votes
1 answer

Writing a web crawler -- how do I emulate what Google does when it sees #! in a URL?

I'm writing a web crawler and want to do what Google does when it encounters a #! URL in a page it has retrieved. If the URL doesn't have #! Google adds it to the list of pages that it will eventually fetch and index, but it does something special…
J.Merrill
  • 1,233
  • 14
  • 27
0
votes
0 answers

Why is Wordpress inserting "#!" into URLs?

if ( window.location.href.search('#!/') == -1 && window.location.href !== et_site_url && window.location.href !== ( et_site_url + '#' ) ) { access_without_ajax = true; $et_main_content.css( { opacity : 1, top : '77px', width…
0
votes
0 answers

Facebook sharer gets title from content of HTML element

I am working on a single page website with multiple Facebook 'Share this' buttons. The main URL is ie.: http://wishdesign.nl/fora/fb.sharer.htm (working demo URL) The Facebook sharer URL would then…
lmeurs
  • 16,111
  • 4
  • 27
  • 30
0
votes
2 answers

Inline navigation with hashbang pages

In the past, I used to rely on hash for inline navigation, for example: http://url?Category=a&item=3#Paragrah1 (Pointing to Paragraph1 within the http://url?Category=a&item=3 page) With the widespread use of ajax, the hash tag has switched to a…
Christophe
  • 27,383
  • 28
  • 97
  • 140
0
votes
2 answers

Adding your own hash in the URL breaks jQuery Mobile?

I would like to use my own hash parameters in the URL, but when I do the jQuery Mobile site does not work any more. Just a blank white screen with an endless spinner. Is it true the hash is off limits to me when using jQuery Mobile?
TruMan1
  • 33,665
  • 59
  • 184
  • 335
0
votes
1 answer

How should implement Hashbang (AJAX) in content page tabs?

As some of you may know, Google is now crawling AJAX. The implementation is by far something elegant, but at least it still applies to Yahoo and Bing AFAIK. Context: My site is driven by Wordpress & HTML5. An Custom Post Type has tree types of…
DarkGhostHunter
  • 1,521
  • 3
  • 12
  • 23
0
votes
1 answer

Can Google track nested hashbang URLs?

I've created a onepager website where google is able to track the ajax loaded content of the main site by loading each content via the !#my-url <-> _escaped_fragment_ "translation" In one of those ajax loaded contents are some more hashbang URLs…
Denis
  • 155
  • 1
  • 2
  • 11
1 2 3
10
11