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

**URL:** <https://www.ruby-forum.com/t/redirect-to-another-page-visible-on-url-bar-with-nginx/214942>\
**Category:** NGINX\
**Created:** [December 16, 2011, 11:39am UTC](https://www.ruby-forum.com/t/redirect-to-another-page-visible-on-url-bar-with-nginx/214942 "2011-12-16T11:39:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [December 16, 2011, 11:39am UTC](https://www.ruby-forum.com/t/redirect-to-another-page-visible-on-url-bar-with-nginx/214942/1 "2011-12-16T11:39:54Z")

</div>

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 🙂

Posted at Nginx Forum:

> **[redirect to another page (visible on url bar) with nginx?](https://forum.nginx.org/read.php?2,220157,220157#msg-220157)**
>
> 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...

---

<div class="post-metadata">

**Author:** ![bobinfo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f05b48/32.png) [@bobinfo](https://www.ruby-forum.com/u/bobinfo)\
**Post date:** [December 16, 2011, 11:49am UTC](https://www.ruby-forum.com/t/redirect-to-another-page-visible-on-url-bar-with-nginx/214942/2 "2011-12-16T11:49:14Z")

</div>

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?

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

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

Good luck,

## f

Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
