Zoeken in Support

Vermijd ondersteuningsscams. We zullen u nooit vragen een telefoonnummer te bellen, er een sms naar te sturen of persoonlijke gegevens te delen. Meld verdachte activiteit met de optie ‘Misbruik melden’.

Learn More

Deze conversatie is gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

How to make the Firefox show a local index.html instead of a directory listing

  • Geen antwoorden
  • 1 heeft dit probleem
  • 3 weergaven
more options

I have a set of HTML files on my disk, and I want to browse them with Firefox without a web server. The pages don't have any dynamic content, and viewing each HTML page works fine, including image, CSS, etc. However, these HTML pages have links to each other, and clicking on them does not always work, due to the following issue: some pages are named 'index.html' and instead of the links linking to a name containing 'index.html', they link to directory names (ending in '/'). If the whole set of pages (which its directory structure) was copied on a web server, everything would work, as the web server would map URLs of directories to the index.html page. When using Firefox locally, that however is not the case and such links end up showing the directory listing.

My question is: Is there a setting somewhere to make links to local directories instead go to a file 'index.html' instead?

I have a set of HTML files on my disk, and I want to browse them with Firefox without a web server. The pages don't have any dynamic content, and viewing each HTML page works fine, including image, CSS, etc. However, these HTML pages have links to each other, and clicking on them does not always work, due to the following issue: some pages are named 'index.html' and instead of the links linking to a name containing 'index.html', they link to directory names (ending in '/'). If the whole set of pages (which its directory structure) was copied on a web server, everything would work, as the web server would map URLs of directories to the index.html page. When using Firefox locally, that however is not the case and such links end up showing the directory listing. My question is: Is there a setting somewhere to make links to local directories instead go to a file 'index.html' instead?