Options -Indexes
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^q/([A-Za-z0-9_-]+)$ public/q.php?c=$1 [L,QSA]
</IfModule>

<IfModule mod_headers.c>
<Files "install.php">
Header set X-Robots-Tag "noindex, nofollow, noarchive"
</Files>
</IfModule>

<Files "install.php">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Deny from all
  </IfModule>
</Files>
