title: If url is the homepage (/ or index.php) do this
body: <p>I'm trying to hide some content on my homepage using this code:</p>
  
  <pre><code>&lt;?php   
  
    $homeurl = 'index.php';                               
    $homepage = "/";
    $currentpage = $_SERVER['REQUEST_URI'];
  
    if($currentpage == $homepage or $currentpage == 'index.php') {
    echo 'no content';
    } else {
      echo 'content';
    }                                     
  
  ?&gt; 
  </code></pre>
  
  <p>It works if the url is simply www.mysite.com but not if the url is www.mysite.com/index.php - I need the content hidden in both instances.
  My PHP is very basic so please forgive me!</p>