Are you just wanting to add a slash to the end of the URL?
If so, something like this may work...
php Code:
<?
if (substr ($_SERVER['REQUEST_URI'], -1) != "/") header ("Location: http://" . $_SERVER['SERVER_NAME'] . "/" . $_SERVER['REQUEST_URI'] . "/"
?>