Fix rss links and only render redirect code on posts and pages