zvv

AH01071: Got error Primary script unknow

Symptoms

Cause

This is a default behavior of apache + nginx.

Resolution

Add the rewrite rule into /var/www/vhosts/example.com/httpdocs/.htaccess in order to check the file before sending it to php handler. The following rewrite rule checks if the requested file exists and returns index.php page if no.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

More information regarding rewrite rules could be found at apache official web site.

 

via。https://support.plesk.com/hc/en-us/articles/214029589-Primary-script-unknown-error-is-logged-while-accessing-non-existent-file-

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »

因本文不是用Markdown格式的编辑器书写的,转换的页面可能不符合AMP标准。