Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([0-9]+)/?$ index.php?id=$1 [L,QSA]
    RewriteRule ^taptin-([0-9]+)\.html$ index.php?id=$1 [L,QSA]
</IfModule>

# Protect configuration/data files, but do not block executable PHP pages.
<FilesMatch "^(config\.php|mysql_compat\.php)$|\.(inc|sql|log|dat)$">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order allow,deny
        Deny from all
    </IfModule>
</FilesMatch>

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/javascript
</IfModule>

ErrorDocument 404 /404.php
