如何在PHP中進行重定向? - How do I make a redirect in PHP?

問題:

Is it possible to redirect a user to a different page through the use of PHP? 是否能夠經過使用PHP將用戶重定向到其餘頁面? php

Say the user goes to www.example.com/page.php and I want to redirect them to www.example.com/index.php , how would I do so without the use of a meta refresh? 假設用戶轉到www.example.com/page.php而且我想將其重定向到www.example.com/index.php ,那麼在不使用元刷新的狀況下該怎麼作? Is it possible? 可能嗎? spa

This could even protect my pages from unauthorized users. 這甚至能夠保護個人頁面免受未經受權的用戶的侵害。 .net


解決方案:

參考一: https://stackoom.com/question/3Du3/如何在PHP中進行重定向
參考二: https://oldbug.net/q/3Du3/How-do-I-make-a-redirect-in-PHP
相關文章
相關標籤/搜索