• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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