Help:Bots

Just wondering: How can you have YOURLS files in a setrpaae directory i.e. mydomain.com/yourls/ yet have the shortened URLs appear as mydomain.com/shortlink. I don't want to put all the YOURLS directories/files at the root on the server in order to preserve organization. Thanks!