title: Materialize disappear when I will use codeigniter url
body: <p>I have a strange problem. Im usining Codeigniter with MaterializeCSS. I want to create navs to create menu. The problem is when I use localhost/page everything works fine, navbars are visible, but When I'll use a site.url, page looks like materalize is not included. I don't know what to do. I can quess there is something with URL in browser<a href="https://i.stack.imgur.com/WbR2I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WbR2I.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/WbR2I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WbR2I.png" alt="localhost/page"></a>
  <a href="https://i.stack.imgur.com/LXvup.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LXvup.png" alt="after forwarding"></a>
  Controller:
      
  
  <pre><code>class main extends CI_Controller {
  
          public function __construct()
          {
          parent::__construct();
          $this-&gt;load-&gt;database();
          $this-&gt;load-&gt;view('head');
          $this-&gt;load-&gt;view('index');
          }
          public function index()
          {
          $this-&gt;load-&gt;model('quiz_model');
          $data['result'] = $this-&gt;quiz_model-&gt;get_data();
          $this-&gt;load-&gt;view('content/quiz', $data);
          }
          public function addquestion()
          {
              $this-&gt;load-&gt;view('content/addquestion');
          }
  }
  </code></pre>
  
  <p>index.php</p>
  
  <pre><code>&lt;?php
  $this-&gt;load-&gt;helper('html');
  $this-&gt;load-&gt;helper('url');
  ?&gt;
  &lt;nav&gt;
    &lt;div class="nav-wrapper"&gt;
      &lt;a href="" class="brand-logo"&gt;Logo&lt;/a&gt;
      &lt;ul id="nav-mobile" class="right hide-on-med-and-down"&gt;
              &lt;?php echo '&lt;li&gt;&lt;a href="' .site_url("main").'"&gt;web page&lt;/a&gt;&lt;/li&gt;' ?&gt;
              &lt;?php echo '&lt;li&gt;&lt;a href="' .site_url("main/addquestion").'"&gt;Dodaj pytanie&lt;/a&gt;&lt;/li&gt;' ?&gt;      
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>head.php</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
        &lt;!--Import Google Icon Font--&gt;
        &lt;link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"&gt;
        &lt;!--Import materialize.css--&gt;
        &lt;link type="text/css" rel="stylesheet" href="css/materialize.min.css"  media="screen,projection"/&gt;
  
        &lt;!--Let browser know website is optimized for mobile--&gt;
        &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"/&gt;
      &lt;script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/materialize.min.js"&gt;&lt;/script&gt;
      &lt;title&gt;Strona&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
         &lt;div class="container"&gt;
  </code></pre>