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