Changed rewritebase in api htaccess. Changed array init to older syntax for PHP 5.3.