change baseurl to root_dir