fix redirect to non-SEF URLs