Как указать прогрузку файла index.php тут:
Code: Select all
if ($_SERVER['REQUEST_URI'] == '/out.php' and count($_GET) == 0) {
[b]тут[/b];
}
Code: Select all
if ($_SERVER['REQUEST_URI'] == '/out.php' and count($_GET) == 0) {
[b]тут[/b];
}
Так я пробовал. Не работаетadmin wrote:header("Location: .... ");
Code: Select all
if ($_SERVER['REQUEST_URI'] == '/out.php' && count($_GET) == 0) {
header('Location: http://mydomain.com/index.php');
// пробовал относительный урл /index.php
}
Code: Select all
if ($_SERVER['REQUEST_URI'] == '/out.php' and count($_GET) == 0) {
die('Hello world');
}