I was having a problem in going to the root of my website and I have solved it by using the code below $this->redirect(“/”);