title: Zend Framework 2.4: Redirect results in blank page on server, works locally
body: <h2>Introduction</h2>
  
  <ul>
  <li>Me and my team are using the <strong>Zend Framework 2.4.2</strong> for the first time</li>
  <li>Our goal is to build a simple portal with an <strong>authorization module</strong> and table- or list-based content</li>
  <li>We've been working on this for a few weeks now and haven't found a solution to our problem yet</li>
  </ul>
  
  <h2>Problem</h2>
  
  <p>In general, Zend works perfectly on a local machine using XAMPP Apache. However, when deploying it on a remote server, everything works <strong>except for redirects</strong>. 
  Whenever there is a command like </p>
  
  <pre><code>      return $this-&gt;redirect()-&gt;toRoute('foo');
  </code></pre>
  
  <p>the browser just shows a blank page (though it redirects perfectly on XAMPP).</p>
  
  <h2>System</h2>
  
  <ul>
  <li>We use the <a href="http://framework.zend.com/manual/current/en/user-guide/skeleton-application.html" rel="nofollow">Zend Skeleton Application</a> with the <a href="http://framework.zend.com/manual/current/en/user-guide/modules.html" rel="nofollow">Album Modul</a>. We also implemented an authorization module which works very similarly and uses redirects in the same fashion.</li>
  <li>Locally, we use XAMPP Version 1.8.3 and PHP 5.5.15.</li>
  <li>We tested our application on two servers (1&amp;1 and Strato) and different PHP versions (5.3, 5.5, 5.6). All of the configurations result in the same behavior (blank page when redirecting).</li>
  </ul>
  
  <h2>What we ruled out</h2>
  
  <ul>
  <li>Case sensitivity and path-related causes can be ruled out. When Zend cannot find a path, it shows an error message.</li>
  <li>Different PHP versions have been tested, so the version is probably not a cause. We cannot say the same about the configuration.</li>
  <li>Access rights on the server can be ruled out as a cause. We tried different configurations here.</li>
  </ul>
  
  <p><em>We researched a lot on redirects and server configuration, but noone else seems to have this problem. In fact no one ever talks about problems on the server, just general problems with the framework. We are thankful for every thought and idea.</em></p>