Got my H(at), my cup of T and have access

15th April, 2011 - Less than a minute read

…but what does it all mean?

Have you ever wondered what these lines mean in your .htaccess file:

RewriteCond %{REQUEST_FILENAME} !-d

and

RewriteCond %{REQUEST_FILENAME} !-f

?

Well, the first one: RewriteCond %{REQUEST_FILENAME} !-d means that if the request is for a real directory (one that exists on the server), index.php isn’t served.

And the second one: RewriteCond %{REQUEST_FILENAME} !-f means if the request is for a file that exists already on the server, index.php isn’t served.

So, there you go.