After moving 301 redirects
If you change domain of your site, you should redirect from old domain to new domain with 301 error.
Why do we need a 301 redirect?
It is needed so that Search Robots know that your site domain changed.
Search Engine’s index of your site will be smooth changed from old url to new url by 301 error.
If you do not notify Search engine that your site changed domain, Search engine will know that your new domain is new site. And Search Engine’s indexes of your old domain will be erased.
How to set up 301 redirects
It's easy.
If you can use .htaccess file, you will write as follows.
|
If your server do not support Mod-Rewrite, you will write as follows.
|
This example means that redirects from ‘hikkoshi’ directory of old domain to new domain(‘www.hikkoshi.com’).
Also, you will be able to write as follows too for 301 error.
|
If you want write with PHP, you will be able to write as follows.
|
How to check 301 redirects
If you finish the setting for redirect, you will be able to check that setting for redirect of your site correct by http://web-sniffer.net/.
If you see following message, your site will be set correct.
HTTP Status Code: HTTP/1.1 301 Moved Permanently
You should keep this settings for 3 weeks or more long, because it is need at least 2 weeks when Search Engine re-index.
You might also like:
Comments
Leave a Reply