If you have an old website, and you want to put the accesses from this website to a new one, a redirect must be made. Redirection will make this transfer in navigation automatically, using the URL.
It is recommended to do this directly on the server, but if you prefer, it can be done with the files index.php and the .htaccess. For that, let's do the following:
Time needed: 5 minutes
I particularly like Sublime Text.
Remember that there is a difference between “http” and “https”.<?php header('Location: https://paginadedestino.php'); ?>
Leave only the two files, remembering to make a general backup of the site.
The .htaccess it's important, it will cause every link typer in the address bar to drop in index.php.
Download