fix a bug in reading redirect url, added fill in place of alloc every time
optimize GetPageNoIndex