Added htaccess file to have subfolders working.
eg localhost/api/<channelname> will redirect to localhost/api/?channel=<channelname>