The method and steps need to do as the followings
(taking Linux using Apache as web server as example):
- Redirect 301 In PHP
<?
Header( "HTTP/1.1 301 Moved Permanently" ) ;
Header( "Location: http://www.bloghuman.com" );
?> - Setting .htaccess file in the root directory of the website
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.fromHere.com/$1 [R=301,L]
rewritecond %{http_host} ^ToHere.com [nc]
No comments:
Post a Comment