私のサーバーには、3つのファイルindex.php、1.php、2.phpを含むディレクトリ「reset」があります。index.phpには次のコードが含まれています。
if (condition) {
include_once "1.php";
} else {
include_once "2.php";
}
ユーザーは引き続きファイルを開いてディレクトリreset/1.phpから直接含めることができ ますユーザーをこのファイルからindex.phpに自動的にリダイレクトする方法は?