advice please on htacess redirect with php-fpm

jonathanc

Verified User
Joined
Aug 18, 2007
Messages
46
I'm getting [proxy_fcgi:error] AH01071: Got error 'Primary script unknown errors when I try to redirect to index.php using the following in my .htaccess file to remove index.php from the path

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

I am using php-fpm installed (beautifully) by custombuild and believe all settings are default. Site is running php54. Tried adding RewriteCond %{REQUEST_URI} !^/fastcgiphp (and variations) but nothing seems to work. How are other php-fpm users solving this?

Jonathan
 
That's a PHP bug, which is already fixed in PHP 5.4.33, 5.5.17 and 5.6.0. Please update your PHP version, and problem should disappear then :)
 
Updated and problem has disappeared! Thank you for your advice smtalk -- and also for all the hard work you have done on php-fpm for DA.
 
Back
Top