On Thu, May 12, 2011 at 02:13:03PM +1200, Ryan B wrote:
> Hi,
> Just wanting to enabled a rewrite of the following url,
>
> Redirecting all requests from http://www.domain.com/site/forums and
> http://www.domain.com/forums to http://forums.domain.com
server {
server_name www.domain.com;
location /forums {
rewrite ^/forums(.*)$ http://forums.domain.com$1;
}
location /site/forums {
rewrite ^/site/forums(.*)$ http://forums.domain.com$1;
}
...
--
Igor Sysoev
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx