PHP Redirects and How to Use Them
Usually a PHP redirect is much more reliable than other form of redirects like HTTP redirect or JavaScript based redirects.
A PHP Redirect automatically transfers a web user from one URL to another. For example, typing foo.com in the browser automatically transfers the user to another URL bar.com.
The PHP Redirect command:
<?php
header("location: [some-url]");
?>
Replace [some-url] with the URL where you want the redirection to take place.
For example,
header("location: ./version2/index.html");
=>redirect to "index.html" page in subfolder called "version2"