Function registerBaseUrl

This function is one of the ways you can set the base url.