K
K
Kacblm2018-10-15 18:04:24
Nginx
Kacblm, 2018-10-15 18:04:24

How to make redirect "dots" after site root in nginx?

Colleagues, good afternoon.
Please tell me how to configure nginx so that it processes "." at the end of the site and did a redirect to the root of the site?
There is www.site.ru there a lot of things, but recently they found www.site.ru. also works, and www.site.ru./ works (it opens www.site.ru.) here's how to force . and ./ handled by nginx? Thank you very much.
Tried with return 301 and with location =/. but not working yet.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kacblm, 2018-10-15
@Kacblm

The answer helped on stackoverflow
https://habr.com/post/172999/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question