為了避免連結中斷,合法的SEO手法是使用301轉址,在PHP中是這麼使用的。網站搬家,網頁重新設計,通通都可使用301轉址。這個手法是合法的轉址,而不會被視為惡意引導或是欺騙引導,可以放心使用。
<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.somacon.com/");
exit();
?>
隨機文章
- 搶救 被刪掉的免費烏克蘭域名 (2010-02-18)
- 重覆收到同一封信多次 (2009-09-02)
- 在微星 Wind Notebook U90上的Ubuntu跑PPS (2011-01-02)
- 10分鐘重置Joomla後台管理員密碼 (2015-01-06)
- 被白痴的IE7打敗 (2009-02-22)