.htaccess 319 B

123456789101112
  1. Options +FollowSymlinks
  2. RewriteEngine On
  3. RewriteRule ^api/(.*)$ action.php?action=api&command=$1 [L]
  4. #if requested resource isn't a file
  5. # and isn't a directory
  6. # then serve local error script
  7. RewriteCond %{REQUEST_FILENAME} !-f
  8. RewriteCond %{REQUEST_FILENAME} !-d
  9. RewriteRule .* action.php?action=rewrite [L]