為了避免連結中斷,合法的SEO手法是使用301轉址,在PHP中是這麼使用的。網站搬家,網頁重新設計,通通都可使用301轉址。這個手法是合法的轉址,而不會被視為惡意引導或是欺騙引導,可以放心使用。
<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.somacon.com/");
exit();
?>
隨機文章
- Facebook對你的上網行為全面掌控 (2011-10-08)
- FCKeditor PHP調用筆記 (2009-05-04)
- OLPC-XO筆電即將推出Windows版 (2007-11-03)
- 20170622 PTT 掛站? (2017-06-22)
- 關閉Virtualbox上客體與實體的時間同步 (2012-04-11)