Index.html
Index.html (англ. Index «указатель» + .html — расширение, индексный файл, файл-индекс) — традиционное название файла, который используется в качестве индекса для каталога веб-сайта. Индексный файл ищется по умолчанию веб-сервером, если в URL указан не файл, а каталог. Файл обычно написан языком гипертекстовой разметки HTML.
Например, для www.example.org/ на наличие своего индексного файла будет проверяться корневой каталог сайта, а для www.example.org/products/ — каталог products. Поведение может быть переопределено, например, в .htaccess, ЧПУ. Название индексного файла задано в настройках серверного ПО. Традиционно значение этой настройки задано по умолчанию как index.html и может быть дополнено другими вариантами или изменено на любое другое. IIS считает файлом по умолчанию default.htm, а некоторые веб-серверы — сразу набор: index.html, index.htm, index.php, index.php3, index.phtml, index.shtml, default.htm, default.html. Если ни один из заданных в настройках файлов не существует на сервере, серверное программное обеспечение может выдать автоматически сформированный листинг всех файлов указанного каталога или какую-либо ошибку доступа (403 или 404).
Ссылки
- https://mirror.yandex.ru/ — пример индекса каталога в виде листинга, генерируемого nginx.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.