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

Ian Hancock Development

…but what does it all mean?

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

RewriteCond %{REQUEST_FILENAME} !-d


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.