Answer the question
In order to leave comments, you need to log in
What should be done so that htaccess does not block ajax request?
Good afternoon ! I would like to ask if my htaccess is configured so that it is impossible to directly access .php files and therefore my ajax request is blocked, I would be very grateful if you could tell me how to either add the file to which I need to access to the exclusions or configure htaccess in another way here is what the console outputs
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php?q=$0 [QSA]
<FilesMatch "\.(php)$">
Deny from all
</FilesMatch>
<FilesMatch "index.(php)$">
Allow from all
</FilesMatch>
AddDefaultCharset UTF-8
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