The HTTP response status code 301 Moved Permanently is used for permanent URL redirection, meaning current links or records using the URL that the response is received for should be updated. The new URL should be provided in the Location field included with the response.
3) Once in to the cPanel interface, scroll down to Domains and click Redirects
4) On the Redirects page, we're going going to setup our redirect.
In this example, we're going to redirect yoursupporthero.com/index.php to NameHero.com. Below is how that is setup:
5) Click the blue Add button after you have entered the information and your redirect has been created.