Fixed 301 redirects on templates