S
S
SOTVM2018-04-05 11:01:18
Apache HTTP Server
SOTVM, 2018-04-05 11:01:18

.htaccess allow directory listing?

I create a .htaccess file in the right directory, I write the line Options Indexes
in it, I have 403 error , I
tried the "scientific poke method", comment the lines, but only RewriteEngine Off saves

here is my .htaccess from root

IndexIgnore *
Options +FollowSymlinks
Options -Indexes
RewriteEngine On
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule .* index.php [F]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
ErrorDocument 404 /404.html
ErrorDocument 403 /403.html

what's wrong there? why two rules?
RewriteRule .* index.php [F]
RewriteRule .* index.php [L]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SOTVM, 2018-04-06
@sotvm

everything turned out to be banal, simple - you just need to add +
for how much useful you learned
5ac6c5f850416409669587.gif

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question