Rewriting URI Fragment

Sam Millar lists at ruby-forum.com
Tue Feb 2 04:09:08 MSK 2010


Hello,

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
of a page if loaded with a dynamic URL is an JavaScript redirect of the
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 ?

Thanks.
-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list