$ ruby -r uri -e 'p URI.parse("http://www.ohmiya-h.spec.ed.jp/zaikou/index.html").path'
"/zaikou/index.html"