removing the /index/:host/ and /index/:host/:service