Skip to main content

php-fpm subdomain rewrite problem

Comments

1 comment

  • cPanelMichael
    Hello @vacancy, The "Primary script unknown"error message occurs with PHP-FPM when a rewrite rule in the .htaccess file forces the use of a specific file that does not exist.
    RewriteEngine On RewriteCond $1 !^(index\.php|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php/$1 [L]

    You can verify an index.php file exists in the document root where this happened to confirm that's what lead to the error message. Thank you.
    0

Please sign in to leave a comment.