title: How to handle facebook sharing/like with hashbang urls?
body: <p>I am building a website where from the homepage i will open some other URI on the website into a lightbox (AJAX), and i want to use HTML5 push state and hash bangs as a fallback to manage changes of states.</p>
  
  <p>Now i want the urls to be crawlable and Facebook shareable/likeable..</p>
  
  <p>If the user browser supports HTML5 push state, no problem, he can share the URL (for example : <code>http://myserver/example</code> ) and Facebook will find the appropriate OG metas in the static content.</p>
  
  <p>But if the user uses a HTML4 browser, he will have a url like <code>http://myserver/#!/example</code>. and i want him to be able to share it through facebook anyway...</p>
  
  <p>Now it looks like Facebook supports the _escaped_fragment_ replacement method, so i though i would simply redirect requests from <code>http://myserver/?_escaped_fragment_=/example</code>
  to <code>http://myserver/example</code>
  and everybody should be happy…</p>
  
  <p>So i added a rewrite condition to my htaccess :</p>
  
  <pre><code>RewriteCond %{QUERY_STRING} ^_escaped_fragment_=([^&amp;]*)
  RewriteRule .* http://%{HTTP_HOST}/%1? [R=301,L,NE]
  </code></pre>
  
  <p>My problem is that i can't make it work with Facebook, with Facebook linter it seems to percent-escape all the time the part of the URL after the hashbang, resulting in urls like 
  <code>http://myserver/%2Fexample</code> which lands to a 404 :-(</p>
  
  <p>Does anybody knows how to trick Facebook into not escaping this part of the URL ?
  Can i do something on the apache mod_rewrite side ?</p>
  
  <p>I am also open to any other valid ajax crawlable/likeable URL strategy ;)</p>