Jan: URL überprüfen

Beitrag lesen

Hallo,

einfach:

<?
if($section==false && $page==false) {
 header("Location: http://localhost/index.php?section=news&page=1");
 exit;
}
?>

hallo ihr zusammen!

hab da mal ne frage!
hab folgende URL:

  1. http://localhost/index.php
    ich sag mal so, ist ja standard, wenn man die seie aufruft !

  2. http://localhost/index.php?section=news&page=1
    aber wie kann ich machen, wenn man die url aufruft, wenn eigentlich 1 als url ist, das er das automatisch in 2 ändert !
    also ?section=news&page=1
    anhängt !!

kann mir da jemand helpen!?

danke