Teaching the system how to work with redirects