Answer the question
In order to leave comments, you need to log in
How to add slash at the end of url?
Hello. On a multilingual site, I try to add a slash at the end of the url on the main site to make it work . I mysite.com/en/
use this directive, but it does not work:
location ~ "^/[a-z]{2}[\s]" {
return 301 $1/;
}
mysite.com/en
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