PHP

Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: http://www.siteadresi.com” );
?>


htaccess
Htaccess 301 Yönlendirmesi
Options +FollowSymlinks
RewriteEngine on
ReWriteCond %{HTTP_HOST} ^(www.)?eskiadres.com$ [NC]
ReWriteRule ^(.*)$ http://www.siteadresi.com/ $1 [R=301,L]