Re-factors URL protocols