restructure url