Different Ways To Redirect A URLs to Another web page

In this tutorial i will described how to redirect from one page to another web page using different options, when the user access a page which is not no longer exist at this time you can use this methodologies.

Redirection may be server side using PHP.We can also do redirection url of one page to other page using java script,jquery and HTML head tag.

In PHP:

Below code redirect target url after 5 sec.

With help of sleep method of PHP:

Below code sleep thread 5 sec the fire header method to redirect.

HTML Meta Tag:

Below code refresh site after second and redirect to the target URLs.

Javascript:

Below code redirect target urls after 5 sec.