Add handler for rewriting direct URL entry