hello sofia!
This appears to be occurring because Kentico is trying to handle the URL itself, the way you avoid this is you can go to CMS Site Manager, Settings, URL and SEO and under Excluded URLs you want to put your url to your custom application.