What does RewriteCond directive mean?



  • What does that mean? RewriteCond Apache?

    And more specifically, it means, if it's not hard, lay down the shelves, or it's hard for my brain to take this information.

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    

    What does that mean? - If the directory or file requested in URL is directly addressed to them



  • These directives set the conditions for the following directives. RewriteRule♪ That is, they do not apply on their own, and they must be followed by a directive that they influence.

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^index.php [L]
    

    In particular !-f requires that the rule RewriteRule only if the request does not correspond to the physically existing file but !-d - The request shall not apply if a physically existing folder is requested. Thus, the rule RewriteRulethe following directives will only touch virtual URL for which there is no folder or file on the server's disk.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2