change base_url based of file structure