• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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