March 09, 2018 09:54AM
> On 9 Mar 2018, at 17:06, Gregory Edigarov <edigarov@qarea.com> wrote:
>
> Hello,
>
> somesite.com/blog is 301 redirected to somesite.com/blog/ by nginx.
>
> this is not the behaviour i want.
>
> is there any way to stop it from doing so?

A special location for "/blog":

location = /blog {
...
}

location /blog/ {
...
}


--
Igor Sysoev
http://nginx.com

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

How to stop nginx from adding a trailing slash

Gregory Edigarov March 09, 2018 09:08AM

Re: How to stop nginx from adding a trailing slash

Igor Sysoev March 09, 2018 09:54AM

Re: How to stop nginx from adding a trailing slash

Gregory Edigarov March 09, 2018 11:20AM

Re: How to stop nginx from adding a trailing slash

Igor Sysoev March 09, 2018 03:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 295
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