• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff 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