Answer the question
In order to leave comments, you need to log in
Nginx how to fix adding slash at the end of url?
There is a site on Laravel. I want to add a slash at the end.
Made it this way
location / {
rewrite ^([^.\?]*[^/])$ $1/ permanent;
try_files $uri @clean_url;
}
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