title: How to rewrite URL using Codeigniter route or htaccess file?
body: <p>I have created a <strong>Home</strong> page controller with a <strong>Page</strong> method so that it can load inner page views. So I simply pass the <strong>Page name</strong> as an argument to <strong>Page</strong> method and it loads that specific view.</p>
  
  <pre><code>E.g. 
  http://www.mywebsite.com/home/page/copyright
  </code></pre>
  
  <p>So here 
  1. <strong>home</strong> is controller
  2. <strong>page</strong> is method
  3. <strong>copyright</strong> is the parameter passed to page() method</p>
  
  <p>So the home age loads simply using this URL</p>
  
  <pre><code>http://www.mywebsite.com/home/
  </code></pre>
  
  <p>and inner pages load using this url pattern</p>
  
  <pre><code>http://www.mywebsite.com/home/page/copyright
  </code></pre>
  
  <p>Now I want to load inner pages so that suppose I use this URL</p>
  
  <pre><code>http://www.mywebsite.com/copyright
  </code></pre>
  
  <p>it should load the page from</p>
  
  <pre><code>http://www.mywebsite.com/home/page/copyright
  </code></pre>
  
  <p>How can I do this using Codeigniter Route method or by using .htaccess file ?</p>
  
  <p>Thanks in advance.</p>