title: Object moved this document may be found here php
body: <p>I'm redirecting my web page to another url. It works fine on localhost but when i host it to my web server then it give me the message which says "Object Moved This document may be found here". I don't know what is the issue here is my code.</p>
  
  <pre><code>foreach($html-&gt;find('a[class=btn btn-warning btn-block]') as $element) 
        $redic=$element-&gt;href;
         header("Location: $redic");
  </code></pre>
  
  <p>please help me what should i do to avoid this error. Thank you</p>