Redirect to another page (visible on url bar) with nginx?

Hi!

I’m trying to figure out if / how I could redirect from an url to
another one, but i would like this change to be visible, i.e to change
the text / url in the url bar.

I’ve checked with url rewrite, but it seems to me that the rewriting is
only internal, is there a way to do a visible rewriting?

I would like to transform the search url created by a search form
(/search.php?key=(.)&page=(.)&cat=(.)&filter=(.)&orderby=(.*)) in a
clean url like /search/$1/$2/$3/$4/$5/ (and then the clean url will be
converted to something else via the rewrite module)

Is there any way to do that?

Thanks!

bob :slight_smile:

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,220157,220157#msg-220157

On Fri, Dec 16, 2011 at 05:39:05AM -0500, bobinfo wrote:

Hi there,

I’m trying to figure out if / how I could redirect from an url to
another one, but i would like this change to be visible, i.e to change
the text / url in the url bar.

I’ve checked with url rewrite, but it seems to me that the rewriting is
only internal, is there a way to do a visible rewriting?

http://wiki.nginx.org/HttpRewriteModule#rewrite

You want the word “redirect”, just like you used in the first paragraph.

Good luck,

f

Francis D. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs