Improved base url configuration