title: Header redirects to page that doesn't exist?
body: <p>I have this strange behavior, PHP headers act differently on webserver and localhost. </p>
  
  <p><strong><em>Example</em></strong> </p>
  
  <p>On web hosting function </p>
  
  <pre><code>header("Location: /content/".$page['url_language']."/".$page['direction']."/".$w['id']."/")
  </code></pre>
  
  <p>redirects to index.php and the <code>/content/".$page['url_language']."/".$page['direction']."/".$w['id']."/"</code> are send as parameters. </p>
  
  <p>But then i do the same on localhost and my browser redirects to page <code>/content/".$page['url_language']."/".$page['direction']."/".$w['id']."/"</code></p>
  
  <p>That does not exist, not the index. 
  How this happens, there is no .htaccess on web server and localhost to change the settings. Maybe I missing some settings, any suggestions?</p>