You’ll need to use a server-level URL rewrite (such as mod_rewrite), and the restful_urls setting in config.inc.php.