php

Serverside and Clientside Redirection

Permalink 3 minute read Modified: (rhnvrm)

Redirection can be achieved Server-Side or Client-Side. Redirection on client side involves the following steps: User requests a Page using an URI. Server sends a page based on that. That page will have JavaScript that will redirect user to another page. So, again server will get the request for the new page and then server will give response based on new request. That implies: Client-side -> Server-side -> Client-side -> Server-side -> Client-side.