redirect when dir name does not end with slash