Added an ability to generate redirect templates