Just name your default page "index". I work with Apache 2 and this would work.
Folder name is the same as a file name
-
05-06-2023 - |
Frage
In my directory I have a file called portfolio.php
.
The navigation menu, there is a link to the portfolio file, and the href links to portfolio.php
.
I am trying to create a folder called portfolio, and inside that folder I will add projects, i.e project.php
,project1.php
,project2.php
and so on.
So the projects
will be linked from the portfolio
page, and the url will appear as follows for example: portfolio.php/proejct.php
The problem is, when I created the folder portfolio, and try to visit it, it shows the Index of /portfolio
....
How can I fix this? I tried to place the portfolio.php page within it, but no hope. What I am doing wrong?
Keine korrekte Lösung
Andere Tipps
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow