為了避免連結中斷,合法的SEO手法是使用301轉址,在PHP中是這麼使用的。網站搬家,網頁重新設計,通通都可使用301轉址。這個手法是合法的轉址,而不會被視為惡意引導或是欺騙引導,可以放心使用。
<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.somacon.com/");
exit();
?>
隨機文章
- OpenWrt 18.06.1 with LuCI 安裝於 vmWare workstation Pro 14 (2018-12-08)
- 危機還沒有過嗎?毛部長治國先生 (2012-03-17)
- 在ubuntu 10.4 LTS版上的輸入法設定 (2010-09-06)
- Notion 測試 還不能滿足我日常使用的部份 (2021-03-23)
- Bob-BLOG的sitemap產生器問題 (2008-08-30)






![[chatGPT 測試] DSM 7 有什麼特色](https://chihping.aflypen.com/wp-content/uploads/2023/03/usb-ga13f61ece_1280-300x221.jpg)

