Rewriting URI Fragment
mdounin at mdounin.ru
Tue Feb 2 04:45:18 MSK 2010
On Tue, Feb 02, 2010 at 02:09:08AM +0100, Sam Millar wrote:
> I have a Facebookesque AJAX URL system so that certain pages will
> dynamically reload data and update the location.hash parameter and make
> the URL become /old_path#/new_path
> At the moment the only way I have been able to handle proper redirection
> page once it has rendered (and of course this is the most slow method of
> doing this).
> Is it possible to rewrite my requests that contain a URI fragment, at
> nginx level, so a request to www.example.com/ham#/bacon will receive a
> redirect to www.example.com/bacon ?
No. Fragments aren't passed to server by browsers.
More information about the nginx