Only render redirect code on posts and pages