nginx_redirect.conf template to end with (/|$) instead of / (TEMPLATE)

Version 1.51

Bugfix
Finished

Changed: location |REDIRECT_PATH|/ To be: location ~ ^|REDIRECT_PATH|(/|$) This will allow a redirect value of: /some/file.txt (previously didn't match, as it needed "/some/file.txt/") as well as allowing adding "/folder" to allow: /folder /folder/ /folder/file.txt which would redirect everything in /folder to the new location, while not matching: /folder2

Interested to try DirectAdmin? Get a 30-day Free Trial!