nginx rewrite help

Igor Sysoev is at rambler-co.ru
Thu Jun 18 11:43:15 MSD 2009


On Wed, Jun 17, 2009 at 09:22:46PM -0700, Kevin Castiglione wrote:

> hei guys
> i want all urls to be re-written as follows:
> 
> xx /host/xx
> 
> xx is the url full path, it should be written as /domain/xx where host is
> the hostname.
> 
> for example www.ABCD.COM <http://www.abcd.com/>
> 
> /test?1 ---> /ABCD.COM/test?1 <http://abcd.com/test?1>
> is it possible to do this with nginx?
> thank you!

Should it be redirect or what ?


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list