Simple parsing change for virtual-host style urls

Simple parsing change for virtual-host style urls, makes sure you get the actual region submitted