How to stop nginx from adding a trailing slash
Gregory Edigarov
edigarov at qarea.com
Fri Mar 9 16:17:58 UTC 2018
On 09.03.18 16:52, Igor Sysoev wrote:
>> On 9 Mar 2018, at 17:06, Gregory Edigarov <edigarov at 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/ {
> ...
> }
>
>
sorry, doesn't work...
It somehow seems to me, some time ago there was an option, to switch the
related behaviour.
but may be it is my false memory.
More information about the nginx
mailing list