Web Page Auto Redirection
I want to auto redirect web pages after some time interval?
Html Tag or Code for redirection of a web page to another?
To make a page redirect itself we have to use the HTML Meta Tag inside the head tag
<meta http-equiv="refresh" content="5; url=//www.hscripts.com">
This code will redirect your webpage to the url //www.hscripts.com after 5 seconds.
The attribute http-equiv="refresh"
calls for refresh of the page.
The attribute content="5; URL=//www.hscripts.com"
sets the time interval in seconds after which the page redirection will take place and the destination page.
Make sure you follow the exact order of coding.
i.e: content="time interval in seconds; URL=resulting page";
Note that you should not use semicolon after 'url='.
So using this meta tag will redirect the page to the destination page after the time interval. To make the page to redirect to a pre-defined page edit the attribute "content" and set proper values of time and destination url as required.
This will work on all pages with any extension or server side language (php, jsp, asp, etc...).