Adjusting the redirect rules