# Browser shows rewritten URL

**URL:** <https://www.ruby-forum.com/t/browser-shows-rewritten-url/221653>\
**Category:** NGINX\
**Created:** [July 24, 2012, 2:34pm UTC](https://www.ruby-forum.com/t/browser-shows-rewritten-url/221653 "2012-07-24T14:34:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [July 24, 2012, 2:34pm UTC](https://www.ruby-forum.com/t/browser-shows-rewritten-url/221653/1 "2012-07-24T14:34:36Z")

</div>

Hi,

I need to rewrite  
[http://mysite:81/magento\_mysite/abc](http://mysite:81/magento_mysite/abc)  
to  
[http://mysite:81/magento\_mysite/?store=abc](http://mysite:81/magento_mysite/?store=abc)

I am able to do this using the .conf file. However, the browser shows  
the  
rewritten URL and not the original.  
Apache’s mod\_rewrite ensures that the browser shows the original URL and  
not the rewritten one.

Is there some parameter I should be passing to avoid showing the new  
URL?

Thanks,  
Yash

---

<div class="post-metadata">

**Author:** ![Yash\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/7ab992/32.png) [@Yash\_G](https://www.ruby-forum.com/u/Yash_G)\
**Post date:** [July 27, 2012, 3:12pm UTC](https://www.ruby-forum.com/t/browser-shows-rewritten-url/221653/2 "2012-07-27T15:12:27Z")

</div>

location = /magento\_mysite/abc {  
return 301 /magento\_mysite/?store=abc;  
}

Posted at Nginx Forum:

> **[Re: Browser shows rewritten URL](https://forum.nginx.org/read.php?2,228933,229037#msg-229037)**
>
> Hi, I need to rewrite http://mysite:81/magento\_mysite/abc to http://mysite:81/magento\_mysite/?store=abc I am able to do this using the .conf file. However, the browser shows the rewritten URL and not the original. Apache's mod\_rewrite ensures t
