Rewrite Help please..
Igor Sysoev
igor at sysoev.ru
Wed Dec 2 11:36:33 MSK 2009
On Wed, Dec 02, 2009 at 03:32:51PM +0700, Glen Lumanau wrote:
> This config also doesn't work :(
location ^~ /content/veiw/ {
rewrite ^/content/view/(\d+)/.* http://new.mydomain.com/node/$1;
}
> -----Original Message-----
> From: Daniele Melosi [mailto:ml at melosi.it]
> Sent: 02 Desember 2009 15:25
> To: nginx at nginx.org
> Subject: Re: Rewrite Help please..
>
> Edho P Arief ha scritto:
> > On Wed, Dec 2, 2009 at 1:21 PM, Glen Lumanau <glen at lumanau.web.id> wrote:
> >> How can I redirect
> >> http://www.mydomain.com/content/view/27840/2/
> >> into
> >> http://new.mydomain.com/27840
> > rewrite ^/view/content/(\d+)/.* /$1;
>
> location ^~ /view/content/ {
> rewrite ^/view/content/(\d+)/.* http://new.mydomain.com/$1;
> }
>
> > Sorry, the new page is located at http://new.mydomain.com/node/27840
>
> location ^~ /view/content/ {
> rewrite ^/view/content/(\d+)/.* http://new.mydomain.com/node/$1;
> }
>
> Bye
> Daniele
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list