<IfModule mod_rewrite.c>
RewriteEngine On # turn the rewrite engine on
RewriteCond %{REQUEST_FILENAME} -s [OR] # if the URL is a file that actually exists on the server
RewriteCond %{REQUEST_FILENAME} -l [OR] # or a symbol link (it goes to an existing file on the server)
RewriteCond %{REQUEST_FILENAME} -d # or a directory that actually exists on the server
RewriteRule ^.*$ - [NC,L] # do nothing (let the request continue)
RewriteRule ^.*$ index.php [NC,L] # otherwise, just redirect the request to PHP, which will use environment variables, regex's, etc. to find out what the user is asking for (or display an error message if the request is invalid)
</IfModule>