ユーザーが Web アドレスをテキスト フィールドに入力できるシナリオがあり、そこから URI を返す必要があります。
そのため、ユーザーは次のような完全な状態でアドレスを入力する可能性があります。
http://www.google.co.uk/contoller/function?stuff=thing
www.google.co.uk/controller/function?stuff=thing
google.co.uk/controller/function?stuff=thing
/controller/function?stuff=thing
controller/function?stuff=thing
これらすべての例から、次のように返す必要があります。
/controller/function?stuff=thing
(ドメインは google だけでなく、何でもかまいません!)