.htaccess 436 B

12345678910111213141516171819202122
  1. Options +FollowSymlinks
  2. RewriteEngine On
  3. <Files "schema.json">
  4. Require all denied
  5. </Files>
  6. <Files "sql.debug.sql">
  7. Require all denied
  8. </Files>
  9. RewriteRule ^api/(.*)$ action.php?action=api&command=$1 [QSA]
  10. #if requested resource isn't a file
  11. # and isn't a directory
  12. # then serve local error script
  13. RewriteCond %{REQUEST_FILENAME} !-f
  14. RewriteCond %{REQUEST_FILENAME} !-d
  15. RewriteRule .* action.php?action=rewrite [L]