title: How to update the URL address without a redirect() in CodeIgniter?
body: <p>In the example below, when I go the the URL: www.example.com/index.php/news/ it will call the method func1() but the URL will not change to www.example.com/index.php/news/func1.  It will remain as www.example.com/index.php/news/.</p>
  
  <pre><code>class News extends CI_Controller {
  
      public function index()
      {
          $this-&gt;func1();
      }
  
      public function func1()
      {
          echo "news item 1";
      }   
  }
  ?&gt;
  </code></pre>
  
  <p>I know that I can change the URL by using redirect('/news/func1') but is there any other way to update the URL when I call a method directly from method in the same Controller? Maybe using routing? </p>
  
  <p>Any help will the appreciated.</p>
  
  <p>Thank you.</p>
  
  <p>V</p>