title: Resource interpreted as Stylesheet but transferred with MIME type text/html in php
body: <p>I am building a project as i am including php file into index.php, </p>
  
  <pre><code>&lt;?php
  session_start();
  
  require(__DIR__ . "/../vendor/autoload.php");
  
  $whoops = new \Whoops\Run;
  $whoops-&gt;pushHandler(new \Whoops\Handler\PrettyPageHandler);
  $whoops-&gt;register();
  
  $url = explode("/", $_SERVER["REQUEST_URI"]);
  
  //Simple Routing
  if($url[1] == "") {
    //home Page
    include(__DIR__ . "/../views/home.php");
    exit();
  }
  
  ?&gt;
  </code></pre>
  
  <p>the issue is that home.php has a style-sheet linked but its not loading path is correct, as i am including home.php into index.php.
  In console it showing this error 
  " Resource interpreted as Stylesheet but transferred with MIME type text/html "</p>
  
  <p>i also have .htaccess file code is.</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/NkV7y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NkV7y.png" alt="enter image description here"></a></p>