title: Import stylesheet with php if a certain page is requested
body: <p>I would like to import a css stylesheet in a page depending on a php condition (or other), this condition is based upon the domain URL.</p>
  
  <p>For example, if the page loaded is "mydomain.com/about-us" import a "css/about-us.css" file.</p>
  
  <p>I have tried with this code, but it does not work.</p>
  
  <pre><code>&lt;?php
      $url = $_SERVER['REQUEST_URI'];
      if (strstr($url, "mydomain.com/about-us/")) {
          include '/css/about-us.css'; 
      }
  ?&gt;
  </code></pre>
  
  <p>How can I import, or use a <code>&lt;style&gt;</code> tag conditionally?</p>
  
  <p><strong>solution correct:</strong></p>
  
  <p>the correct solution is use only the page name, so if you page is mydomain.com/about-us/</p>
  
  <p>use " /about-us/" only.</p>
  
  <p>now have other question, with the code posted you can import css for specific page , but  I noticed that if the domain is mydomain.com/about-us/team.html example in the page team.html load also the css of "about-us" how load the css for about-us only in the page mydomain/about-us/ ??</p>