make base url regex handle multi-site aware