E
E
eugene1592021-01-20 15:05:17
htaccess
eugene159, 2021-01-20 15:05:17

How to exclude folder for deny from all in .htaccess?

There is a .htaccess file with this code:

# line below if for Apache 2.4
<ifModule mod_authz_core.c>
    Require all denied
</ifModule>

# line below if for Apache 2.2
<ifModule !mod_authz_core.c>
    deny from all
    Satisfy All
</ifModule>

It is located in the /core folder.
How to add an exception for the /core/components/calc folder in this .htaccess? So that these directives do not apply to it. To have access to it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2021-01-20
@eugene159

In the folder /core/components/calc/ create a .htaccess file

# line below if for Apache 2.4
<ifModule mod_authz_core.c>
    Require all granted
</ifModule>

# line below if for Apache 2.2
<ifModule !mod_authz_core.c>
    allow from all
</ifModule>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question