I just started learning regular expressions and I just can't figure this out. I need to force a slash at the end of an URL if it not contains an extensions.
So to be more clear:
example.com/test/ stays the same.
example.com/test.php stays the same.
example.com/test becomes example.com/test/ (See the last slash at the end)
Anyone who knows how to fix this?