# Redirects all requests to nonexistent files to index.php, passing the request
# path as a parameter `p` in the query string.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php?p=$1 [L,QSA]
# Don't let people peek at our SQLite, log files, configuration files.
<Files ~ ".sqlite$">
Order allow,deny
Deny from all
</Files>
<Files ~ ".input$">
Order allow,deny
Deny from all
</Files>
<Files ~ ".ini$">
Order allow,deny
Deny from all
</Files>
<Files "log.txt">
Order allow,deny
Deny from all
</Files>