refactor rewriter redirect to behave like common redirect method
use X-Cascade header rather than status code to move to next matching route
removing redundant headers