Improved support for URLs, with multiple prefixes