IndexIgnore *
DirectoryIndex index.php
<ifmodule mod_rewrite.c>
RewriteEngine on
RewriteBase /
# Nothing - Go to index.php
RewriteRule ^$ index.php [L]
# Condition - requested path is not a file or directory.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# If anything matches, send the path to index.php
RewriteRule (.*) index.php?p=$1 [QSA,L]
</ifmodule>