Options -Indexes
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule ^sitemap\.xml$ sitemap.php [L]
  RewriteRule ^robots\.txt$ robots.php [L]
  RewriteRule ^ads\.txt$ adstxt.php [L]
  RewriteRule ^article/([^/]+)/?$ story.php?slug=$1 [L,QSA]
  RewriteRule ^category/([^/]+)/?$ genre.php?c=$1 [L,QSA]
  RewriteRule ^topic/([^/]+)/?$ tag.php?k=$1 [L,QSA]
  RewriteRule ^site/([^/]+)/?$ static.php?p=$1 [L,QSA]
  RewriteRule ^(data|lib)/ - [F,L]
  RewriteRule ^(bootstrap|seed)\.php$ - [F,L]
</IfModule>
<FilesMatch "\.(sqlite|sqlite-wal|sqlite-shm|db)$">
  Require all denied
</FilesMatch>
