Construct url index