title: PHP Header Location is not working in localhost xampp?
body: <p>i am trying to redirect the page using header location in xampp but it is not working and redirecting to localhost/dashboard</p>
  
  <p>i used the following code for simple redirecting in localhost , i placed my site in htdocs/test/   and files in that are index.html and index.php,  the index.php code is as follows </p>
  
  <pre><code>&lt;?php 
        header("Location:/index.html");
   ?&gt;
  </code></pre>
  
  <p>when i am trying to access <a href="http://localhost/test/index.php" rel="nofollow">http://localhost/test/index.php</a> it is not going to localhost/test/index.html 
  but it is redirecting to <a href="http://localhost/dashboard/" rel="nofollow">http://localhost/dashboard/</a></p>