Welcome! Log In Create A New Profile

Advanced

Rewriting URI Fragment

Sam Millar
February 01, 2010 08:12PM
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/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Rewriting URI Fragment

Sam Millar February 01, 2010 08:12PM

Re: Rewriting URI Fragment

Maxim Dounin February 01, 2010 08:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 210
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready