redirect url to correct page