Flexible routing regardless of url structure