Clean up URL structure.