Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
Just in SEO this road to start, talk about this time learning and practice a little summary, share.
1.url Static. My station is written in PHP, from the classification page to the specific information page URLs with a long parameter string, for example, entertainment gossip classification URL is http://www.example.com/index.php/mod=article&action= list&cat=10. SEO is not in touch with this thing when there is heard, such a form of search engine unfriendly, so proceed to static, generally conditional webmaster are modified. htaccess's rewrite rules to implement, for various reasons, this method I can not use. Therefore, I used the PathInfo method to do pseudo static, the previous link now becomes: http://www.example.com/index.php/article_list_cat,1.html.
2.301 represents a permanent transfer (permanently moved), 301 redirect is a Web page to change the address of the best way to search engine friendly, as long as not temporarily move the situation, are recommended to use 301来 to do the site, said in Baidu. In I do not know how to put the domain name example.com to www.example.com, I am very worried, in the domain name management that toss half a day to understand the URL forwarding, and a senior told me that URL forwarding is not good. Sorrow 1 days later thought of in the program to determine whether the URL with the WWW, otherwise use 301 redirect to the www. Similarly, you can unify some other URLs, such as directing www.example.com/index.php to www.example.com.
3.404 error page. As a result of not doing pseudo static before, has put the site out, Google included the 50来 page, now included in those pages address are pointing to the home page. So I have the previous address also redirected to the corresponding URL to go, does not exist is also done with PHP 404 return.
Enclosed I do 301 and 404 of the PHP code, you can say that this is the right way.
function goto404 ($page = ' 404.html ') {
Header (' http/1.1 404 Not Found ');
Header (' status:404 not Found ');
Echo ' If you see this page, the access error, please click here =><a href= "http://www.ckqee.cn/" > Peak hole-Information </a> back to the homepage, thank you for your cooperation! ';
Exit;
}
function goto301 ($url) {
Header ("http/1.1 moved Permanently");
Header ("Location:"). $url);
}
For the sake of sharing, I beg for progress.