Welcome! Log In Create A New Profile

Advanced

Re: How can add trailing slash if I have two or more subdirectories ?

Edho Arief
March 04, 2012 09:48PM
2012/3/5 Valentin V. Bartenev <ne@vbart.ru>:
>>
>
>    location ~ [^/]+/[^/]+$ {
>        return 301 $uri/;
>    }
>

Or this:

location ~ ^[^.]+[^/]$ { return 301 $uri/$is_args$args; }

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Re: How can add trailing slash if I have two or more subdirectories ?

Valentin V. Bartenev March 04, 2012 07:08PM

Re: How can add trailing slash if I have two or more subdirectories ?

Edho Arief March 04, 2012 09:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 251
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready