[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nginx
Subject:    Re: How to redirect internally?
From:       Jonathan Matthews <contact () jpluscplusm ! com>
Date:       2012-07-29 10:52:30
Message-ID: CAKsTx7B9zj6sMREqmHD2cEmqp857HgM6UAMPFCmANArNDZDg=Q () mail ! gmail ! com
[Download RAW message or body]

I suggest you show your wider config and some verbose curl -v output
against nginx.

On 29 July 2012 05:02, Yash Ganthe <yashgt@gmail.com> wrote:
> All the rewrites are marked as last. e.g.
> rewrite ^/([a-zA-Z]+)(.*) $2?store=$1 last;
>
> On 7/27/12, Francis Daly <francis@daoine.org> wrote:
>> On Fri, Jul 27, 2012 at 05:42:17PM +0530, Yash Ganthe wrote:
>>
>> Hi there,
>>
>>> I have created a config so that a URL like
>>> www.mysite.com/abc/electronics.html is rewritten as
>>> www.mysite.com/index.php/electronics.html?store=abc.
>>
>>> What is annoying is that the browser now shows the rewritten URL and not
>>> the pretty URL. How can we ensure that the redirection happens only
>>> internally?
>>
>> http://nginx.org/r/rewrite
>>
>> rewrites are internal, unless you do something to turn them into redirects
>> (= external).
>>
>> What is the rewrite directive you are using? Are are you doing anything
>> the documentation says makes it become a redirect?
>>
>>       f
>> --
>> Francis Daly        francis@daoine.org
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



-- 
Jonathan Matthews
Oxford, London, UK
http://www.jpluscplusm.com/contact.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic