"Only track visits and actions when the action URL starts with " feature doesn't seem to work

I tried the steps mentioned in How do I force Piwik to only track Page URLs that belong to my website? - Analytics Platform - Matomo but the consequence was no more tracking at all. This behavior must be explained. Has anyone else faced the same issue?..