Sonata Admin Symfony2 with PHP-FPM Not Following Internal Redirects on Production
<p>I'm not sure if Sonata has something to do with this or if its related to PHP-FPM, but on production, when following app.php, internal redirects are not followed. If I visit /profile and the link is /profile/, I am taken to the page that asks me to click on /profile/. After a lot of Googling and reading the Book, I'm not sure where to turn.</p>

<p>Here is my VirtualHost:</p>

<pre><code>&lt;VirtualHost *:80&gt;
  ServerName mysite.com
  ServerAlias www.mysite.com mysite.com
  DocumentRoot /var/www/mysite/web
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;FilesMatch \.php$&gt;
      SetHandler proxy:fcgi://127.0.0.1:9000
  &lt;/FilesMatch&gt;

  &lt;Directory /var/www/mysite/web&gt;
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Require all granted
  &lt;/Directory&gt;
</code></pre>

<p></p>

<p>Inside web directory I have an .htaccess</p>

<pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ app.php [QSA,L]
&lt;/IfModule&gt;
</code></pre>

<p>I've hit the website at mysite.com/profile and mysite.com/app.php/profile and still get the same issue.</p>

<p>Thanks!</p>