D
D
dimafunk282020-12-11 10:33:51
System administration
dimafunk28, 2020-12-11 10:33:51

How to properly set up a redirect so that the file system is not visible?

How to make a redirect so that the file system is not displayed?
for example, the page is available at site.ru/temp/temp2/index.html
and at site.ru/temp it
opens,
5fd32378a2109095159041.png

you need to specify a redirect to site.ru from site.ru/temp, but for site.ru/temp/temp2/ index.html remained available

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ross Alex, 2020-12-11
@Wacdis

It's best to look at your Web server's documentation and disable browsing. index.html in each folder is a crutch, and a bad one at that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question