Change slash redirect to exclude existing directories and root