How to rewrite these

Glen Lumanau glen at lumanau.web.id
Sat Feb 20 16:45:53 MSK 2010


Is that posibble to detect if (.+) is numbers only?

So if http://www.mydomain.com/news/1231245/title
Then rewrite to http://app.mydomain.com/redirect/application/1231245

If http://www.mydomain.com/news/category/title
Then do nothing.. just bypass to the content


-----Original Message-----
From: Edho P Arief [mailto:edhoprima at gmail.com] 
Sent: 20 Februari 2010 20:35
To: nginx at nginx.org
Subject: Re: How to rewrite these

On Sat, Feb 20, 2010 at 8:17 PM, Glen Lumanau <glen at lumanau.web.id> wrote:
> Bump..
>

you should start learning writing rewrite rules...

rewrite ^/news/(.+)/title
http://app.mydomain.com/redirect/application/$1 permanent;

_______________________________________________
nginx mailing list
nginx at nginx.org
http://nginx.org/mailman/listinfo/nginx




More information about the nginx mailing list