Answer the question
In order to leave comments, you need to log in
multiviews in nginx?
how to do so:
www.domain.com/test1 -> www.domain.com/test1.php
www.domain.com/test1/test2-> www.domain.com/test1/test2.php
www.domain.com/ every -> www.domain.com/every.php
this works, but with URLs like www.domain.com/test1/
location ~ ^(.+)/$ {
try_files $uri $1.php?$args;
}
I need no slash at the end.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question