How to do this?

I have a domain called aaa.com

I also have a website at aaa.com/blabla

What I need to do is,

If someone access aaa.com, it will be redirected to aaa.com/blabla or
aaa.com/blabla/bleble

I’ve tried

    location / {

            rewrite ^ http://www.aaa.com/blabla;

            try_files $uri @cache;

    }

But it has error

Firefox has detected that the server is redirecting the request for this
address in a way that will never complete.

*   This problem can sometimes be caused by disabling or refusing to

accept

      cookies.

Thank’s before

On Fri, Dec 11, 2009 at 11:03 AM, Glen L. [email protected]
wrote:

If someone access aaa.com, it will be redirected to aaa.com/blabla or
aaa.com/blabla/bleble

I’ve tried

       location / {
you need

location = / {

   *  This problem can sometimes be caused by disabling or refusing to


nginx mailing list
[email protected]
http://nginx.org/mailman/listinfo/nginx


O< ascii ribbon campaign - stop html mail - www.asciiribbon.org