change base path,index, and uri protocol