S
S
Sergey Dydaevskiy2019-11-05 14:18:22
htaccess
Sergey Dydaevskiy, 2019-11-05 14:18:22

How to correctly change the rule in .htaccess?

There is a ".htaccess" file at the root of the site
# Block access to certain file types for these custom folders

RewriteRule ^(user)/(.*).(txt|md|yaml|yml|php|pl|py|cgi|twig|sh|bat)$  error [F]

How can I change this rule so that files in the path
" \user\plugins\fred\elFinder-2.1.50" can be executed without throwing a "Forbidden 403" error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2019-11-05
@dydikson

Add above condition

RewriteCond %{REQUEST_URI} !^/user/plugins/fred/elFinder-2\.1\.50

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question