為了避免連結中斷,合法的SEO手法是使用301轉址,在PHP中是這麼使用的。網站搬家,網頁重新設計,通通都可使用301轉址。這個手法是合法的轉址,而不會被視為惡意引導或是欺騙引導,可以放心使用。
<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.somacon.com/");
exit();
?>
隨機文章
- 免費Blog系統反應時間比較 (2011-02-28)
- 在Linux下使用php連線oracle database (2009-09-30)
- IO error 123 (2014-04-27)
- 獨得4.5億 慨捐千萬做公益 (2007-10-31)
- 現代奶媽 捐母乳也能減肥 (2007-11-01)