CREATING REDIRECTS IN PHP
To create a REDIRECT 301 in PHP use the following code:
Redirect code in php
x
<?php
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.your-new-website.com.br" );
?>
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.your-new-website.com.br" );
?>
What is the 301 Redirect?
The Redirect 301 is an instruction on the server that Page A is now Page B so that when the visitor lands on Page A they will automatically be forwarded to Page B's address.
It is through this mechanism that when you access unibanco.com.br you land on itau.com.br and also when you access www.vvcestudio.com.br you land on vvcestudio.com.br.