$alle = glob('*.html'); shuffle($alle); $eine = array_pop($alle); header("Location: http://example.com/$eine");