• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the current Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Question FastCGI sent in stderr: "Primary script unknown"

This could be normal if the last part of your URL is actually a query string of some sort.

Hard to say without seeing the application's directory structure, internal routing and possible rewrite rules...
 
Clearly a rewrite issue. When the / is present, the rule does not apply, but the web server tries to open the "directory", which of course does not exist.
 
Please look at your rewrite rule if it covers the optional / at the end of the string. The regular expression should end on a "/?".
Example:
Code:
RewriteRule ^foo/bar/?$ http://url.com/some/path
 
Please look at your rewrite rule if it covers the optional / at the end of the string. The regular expression should end on a "/?".
Example:
Code:
RewriteRule ^foo/bar/?$ http://url.com/some/path
still i use rewrite rule of wordpresss

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^go\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /go.php [L]
</IfModule>
 
It seems that this is not the default Wordpress .htaccess setup. That should be

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

So what is the "go.php" doing instead of the "index.php"?
 
It seems that this is not the default Wordpress .htaccess setup. That should be

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

So what is the "go.php" doing instead of the "index.php"?

Because i dont want use index.php file, i use go.php to redirect decode link.
 
I think that you'll be more or less on your own, because according to the rule all requests are sent to the index.php (go.php) file, and interpretation of the URL is handled from there. So if you want a / at the end of query string to not to be interpreted as a directory, you will probably need to either reformulate the .htaccess file rules so that the / is removed before further rules are being processed, for example something like

Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP_HOST} !^\.localhost$ [NC]
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]

or you need to change the handling in Wordpress for such URLs.
 
Back
Top