• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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