Access gateway redirection method and access gateway

The invention relates to an access gateway redirection method and an access gateway. The access gateway redirection method mainly comprises the step that the access gateway judges whether a uniform resource locator (URL) which is transmitted by a terminal, aims to a portal server, is carried by a hyper text transfer protocol connection request message and is used for accessing the portal server is a right uniform resource locator (URL) or not, and the access gateway forwards the connection request to the portal server when the uniform resource locator (URL) is a right uniform resource locator (URL), and a hyper text transfer protocol (HTTP) redirection message is transmitted to the terminal when the uniform resource locator (URL) is a wrong uniform resource locator (URL). According to the embodiment of the invention, the correctness of the uniform resource locator (URL) which is transmitted by the terminal and is carried by the connection request is judged; the connection request is forwarded to the portal server when the uniform resource locator (URL) is a right uniform resource locator (URL); and when the uniform resource locator (URL) is a wrong uniform resource locator (URL), the terminal is forced to be redirected to the portal server, so that the terminal can obtain a right uniform resource locator (URL); and therefore, when a user utilizes saved portal uniform resource locators (URL) to perform Web authentication, a Web authentication process can be proceeded successfully, and the fault-tolerant ability of the Web authentication process can be improved.