為了避免連結中斷,合法的SEO手法是使用301轉址,在PHP中是這麼使用的。網站搬家,網頁重新設計,通通都可使用301轉址。這個手法是合法的轉址,而不會被視為惡意引導或是欺騙引導,可以放心使用。
<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.somacon.com/");
exit();
?>
隨機文章
- 不是MikroTik RouterOS 是網路有問題 (2018-12-11)
- [典故 ] 狗咬呂洞賓 (2007-11-04)
- 調整完Sitemap後~yahoo排名回到第一頁 (2008-10-07)
- phpmailer pop before smtp 測試失敗 (2009-01-13)
- Zoom / Webex / Google Meet / MS TEAMS / Skype WFH 免費視訊會議軟體 評估 (2021-05-24)