I have made my own routes by using
add_rewrite_rule method. I would like to know if it is possible using given method to force all my created routes to redirect to URL where there is trailing slash in the end. For example if i do
add_rewrite_rule('^my-route/', 'index.php?_my_route=1', 'top')
add_rewrite_rule('^my-route', 'index.php?_my_route=1', 'top')
and i make a call to
http://site.dev/my-route then it does not redirect it to
http://site.dev/my-route/. If it is possible then i would be thankful for sharing :).