title: base_url() and site_url() not working in live server
body: <p>I'm working on codeigniter .i tried to call controller function in form action.</p>
  
  <pre><code>&lt;form action="&lt;?php echo site_url("Welcome/InsertValue");?&gt;" method="post" name="frm1"  &gt;
  </code></pre>
  
  <p>this is perfectly working on local server.but in live server it's show <code>404 Page Not Found</code> error.</p>
  
  <p>This is my controller function</p>
  
  <pre><code>function InsertValue(){
  
          $this-&gt;load-&gt;database();
  
              /*db(Insert)*/
          $this-&gt;load-&gt;model("get_db");
  
          $data = array(
          'p_name' =&gt; $this-&gt;input-&gt;post('pname'),
          'y_addr' =&gt; $this-&gt;input-&gt;post('addr'),
          'rating' =&gt; $this-&gt;input-&gt;post('rating'),
          'apartment' =&gt; $this-&gt;input-&gt;post('apartment'),
          'web_url' =&gt; $this-&gt;input-&gt;post('website'),
          'p_manage_qu' =&gt; $this-&gt;input-&gt;post('pcompany'),
          'country' =&gt; $this-&gt;input-&gt;post('country'), 
          'city' =&gt; $this-&gt;input-&gt;post('city'),
          'p_addr' =&gt; $this-&gt;input-&gt;post('paddr'),
          'zip' =&gt; $this-&gt;input-&gt;post('zip'),
          'contact' =&gt; $this-&gt;input-&gt;post('contact')
      );
  
          $this-&gt;get_db-&gt;insert1($data);
          /*echo "new row added";*/
          /*db(Insert)*/
  
          $this-&gt;load-&gt;helper('url');
          $this-&gt;load-&gt;view('supplier/property');
      }
  </code></pre>