為了避免連結中斷,合法的SEO手法是使用301轉址,在PHP中是這麼使用的。網站搬家,網頁重新設計,通通都可使用301轉址。這個手法是合法的轉址,而不會被視為惡意引導或是欺騙引導,可以放心使用。
<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.somacon.com/");
exit();
?>
隨機文章
- 測試 Blog2Post 軟體測試 (2007-11-20)
- 測試-網路寄存經驗分享 (2007-11-28)
- 謝長廷:中國國民黨不知道何謂品質,只會把錢拿去拍廣告罵人 (2008-01-07)
- We can test a internal server with private IP by serveo. (2020-01-01)
- 關於Switch改機這件事 (2025-03-19)


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





