Basically what i want to do is put the requested URL into a variable, and then remove a character (like /) and get a new variable.
I'm trying to implement trailing slashes at the end of the URL's; This works, but i want to do it for all files:
location /examplehtmlfile/ {
try_files = $uri $uri/ examplehtmlfile.html
}
Otherwise if i add a trailing slash at the end it produces a 404 error.
So what i want to do is add to to try_files directive (for the main / location) something like this:
try_files = $uri $uri/ /$uriwithoutslash.html /$uriwithoutslash.php
Thanks