When i open website with localhost/site_name, url immediately becomes localhost/site_name/default_controller_name.
How can i hide it, so that the url only on that main front page becomes localhost/site_name ?
EDIT this is default controller for front page
public function index() {
$this->set('list', $this->User->Mobilenetwork->find('list', array(
'fields' => array('id', 'network')
)));
if($this->Auth->user() )
{
$this->redirect(array('controller' => 'contacts', 'action' => 'index'));
}
if ($this->request->is('post'))
{
//saving data. this is a mess currently, i need to move majority of this code to the model
}