Split functions for URL rewriting