Beginner's question: redirecting /dir/index.html to /dir/

Splitice mat999 at gmail.com
Mon Sep 13 09:46:55 MSD 2010


Location / would also work although server is probably better

Sent from my iPod

On 13/09/2010, at 4:09 AM, Igor Sysoev <igor at sysoev.ru> wrote:

> On Sun, Sep 12, 2010 at 12:13:11PM -0400, ez77 wrote:
>
>>> rewrite ^(.*/)index.html http://$host$1 permanent;
>>
>> Hi Mat,
>>
>> I like your proposal better, which looks more elegant without the if
>> clause, but I don't know where to include it. Under location / I  
>> get a
>> redirect loop.
>
> You should set it on server level.
>
>
> -- 
> Igor Sysoev
> http://sysoev.ru/en/
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list