Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Kërkoni te Asistenca

Shmangni karremëzime gjoja asistence. S’do t’ju kërkojmë kurrë të bëni një thirrje apo të dërgoni tekst te një numër telefoni, apo të na jepni të dhëna personale. Ju lutemi, raportoni veprimtari të dyshimtë duke përdorur mundësinë “Raportoni Abuzim”.

Mësoni Më Tepër

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

  • Pa përgjigje
  • 1 e ka hasur këtë problem
  • 5 parje
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?