Build nginx redirect rules
preserve param