Answer the question
In order to leave comments, you need to log in
Is it possible to deny access to everything except one file in .htaccess?
The site has a folder /folder/
It has a file index.php , .htaccess and a few more folders such as /folder/folder2/
It has the following lines
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /folder/index.php [L]
DirectoryIndex index.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