title: CakePHP route keeps going back to /
body: <p>I am trying to connect /admin/ to a static page 'admin.ctp'.</p>
  
  <p>I copied the pages controller for modification and copied the display function to admin_display. I also tried creating an admin_index function without parameters. My route looks like this at this moment:</p>
  
  <pre><code>Router::connect('/admin/', array('controller' =&gt; 'pages', 'action' =&gt; 'index', 'prefix' =&gt; 'admin'));
  </code></pre>
  
  <p>my admin_index function looks like this:</p>
  
  <pre><code>    function admin_index() {
          $page = 'admin';
          $subpage = null;
          $title_for_layout = 'Admin';
          $this-&gt;set(compact('page', 'subpage', 'title_for_layout'));
          $this-&gt;render('/admin');
      }
  </code></pre>
  
  <p>I put admin.ctp in /views/pages/ and in /views/pages/admin/</p>
  
  <p>Anyway. When I go to /admin/ it redirects me to /. But when I delete admin_index, it complains that the function does not exist, so I does look for it.</p>
  
  <p>Help?</p>
  
  <p>edit: Big correction, all my admin urls go back to /
  edit2: resolved it, something with appcontroller :$</p>