Index.php

wie realisiert man, das automatische aufrufen einer index.php seite in einem verzeichnis.

beim eingeben von www.beispiel.de/unterordner/

soll die index.php automatisch angezeigt werden die sich im unterordner befindet, so wie es mit der index.html funktioniert

ist zwar nicht php aber dennoch…

in der webserver konfiguration steht bei mir folgendes:

DirectoryIndex: Name of the file or files to use as a pre-written HTML

directory index. Separate multiple entries with spaces.

DirectoryIndex index.html index.shtml index.wml index.pwml index.php index.php3 index.php4

Webserver ist Apache
Du musst halt nur eintragen was und in welcher Reihenfolge gesucht werden soll.

Danke, das hat mir sehr geholfen

in der httpd.conf gibt es folgenden Eintrag

DirectoryIndex: sets the file that Apache will serve if a directory

is requested.

The index.html.var file (a type-map) is used to deliver content-

negotiated documents. The MultiViews Option can be used for the

same purpose, but it is much slower.

DirectoryIndex index.html index.html.var index.php

ich hab einfach index.php hinzugefügt, es funktioniert einwandfrei.

[Bei dieser Antwort wurde das Vollzitat nachträglich automatisiert entfernt]