How to do this?
Edho P Arief
edhoprima at gmail.com
Fri Dec 11 09:44:40 MSK 2009
On Fri, Dec 11, 2009 at 11:03 AM, Glen Lumanau <glen at lumanau.web.id> wrote:
> 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 / {
you need
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
>
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the nginx
mailing list