Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Learn More

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

  • Keine Antworten
  • 1 hat dieses Problem
  • 3 Aufrufe
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?