F
F
FilatovNikita2017-10-15 22:52:28
JavaScript
FilatovNikita, 2017-10-15 22:52:28

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 outputs59e3bc6ba426f199859810.png

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 question

Ask a Question

731 491 924 answers to any question