Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Learn More

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

  • Nenhuma resposta
  • 1 tem este problema
  • 3 visualizações
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?