S
S
Sergey Yurievich2022-03-31 17:11:58
HTML
Sergey Yurievich, 2022-03-31 17:11:58

How to configure the opening of html-pages from site folders?

Good afternoon!

Please shed some light on how to make html pages of a static site open from folders.
For example: there is the main index.html and there is a sozdanie-sajtov folder, you need primer.ru and primer.ru/sozdanie-sajtov;
as well as files in this folder primer.ru/sozdanie-sajtov/landing-page Without the .html extension.

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anonymous Penguin, 2022-03-31
@Datexo

Create a folder with the desired name and drop a new index.html into it , this index file will open by default when you click on the folder name in the URL. Whether:

index.html откроется по умолчанию:
http://mysite.loc/mypage1

Так же будет работать:
http://mysite.loc/mypage1/index.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question