title: Codeigniter - Change the URL Path of my Controller
body: <p>Currently my URL is domain.de/site/home, domain.de/site/about.</p>
  
  <p>But i want that my URL ist domain.de/home, domain.de/about etc.</p>
  
  <p>I already have a really simple Controller. In this Controller i`ve a function for each Site:</p>
  
  <pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  
  class Site extends CI_Controller {
  public function index() {
      $this-&gt;home();
  }
  
  public function home() {
      $this-&gt;load-&gt;view("site_header");
      $this-&gt;load-&gt;view("site_nav");
      $this-&gt;load-&gt;view("content_home");
      $this-&gt;load-&gt;view("site_footer");
  }
  
  public function about() {
      $this-&gt;load-&gt;view("site_header");
      $this-&gt;load-&gt;view("site_nav");
      $this-&gt;load-&gt;view("content_about");
      $this-&gt;load-&gt;view("site_footer");
  }
  }
  </code></pre>