M
M
maks789452019-08-02 00:09:44
htaccess
maks78945, 2019-08-02 00:09:44

How to understand an entry in htaccess?

Actually, there is such a record, help me understand what is happening in it?

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2019-08-02
@maks78945

RewriteCond %{REQUEST_FILENAME}- if this file
-d- is a directory
Not a ! negation
in the sum if it is not a directory
RewriteCond %{REQUEST_FILENAME} ! -f- respectively, if it is not a file
RewriteCond +RewriteCond+RewriteCond and so on until the RewriteRule appears
and consequently the first two rules are formed.
then Redirect everything (.*)to index.php keeping GETQSA

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question