Answer the question
In order to leave comments, you need to log in
How to give priority to files in Apache and prohibit opening folders?
Good afternoon.
I ran into a problem that there is a
users folder in the root
and a pages folder in which there is a users.php file and also a users folder
There is a condition
if(file_exists('pages/'.$_GET['path'].'.php')) {
include('pages/'.$_GET['path'].'.php');
}
else {
include('404.php');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question