# ACT Portal — my.alarmtech.com
Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
  RewriteEngine On

  # Never serve application code, data or hidden files directly
  RewriteRule ^(app|data)(/|$) - [F,L]
  RewriteRule ^uploads/.*\.(php[0-9]?|phtml|phar|html?|svg|js)$ - [F,L,NC]
  RewriteRule (^|/)\. - [F,L]
  RewriteCond %{REQUEST_URI} !^/robots\.txt$
  RewriteRule \.(sql|json|log|ini|md|txt|bak|dist|lock)$ - [F,L]

  # Everything else goes through the front controller
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [QSA,L]
</IfModule>

<IfModule mod_headers.c>
  Header always set X-Robots-Tag "noindex, nofollow"
</IfModule>
