且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

“未指定输入文件"WordPress 中的错误

更新时间:2023-12-04 20:00:40

这是您的 .htaccess 文件的问题.

This is a problem with your .htaccess file.

修复:

更新到最新的 WordPress.某些安装中存在永久链接错误.

Update to the latest WordPress. There is a permalink bug in some installations.

确保为 ModRewrite 正确配置了 Apache.

Make sure Apache is configured properly for ModRewrite.

来自支持:在选项 > 固定链接上,是可选"部分.这不是可选的.升级它提到的类别的 index.php/file(我有 PATHINFO 永久链接)后,我不想要文件",所以我将其更改为 index.php/现在我已更改为 index.php/_/(或将其留空以提供标准的类别"子路径),一切又可以正常工作了.这是 Mod 重写文件:

From Support: On Options > Permalinks, is a section "Optional". It's not SO optional. After upgrading it mentioned for category's index.php/file (I've got the PATHINFO permalinks), I don't want "files" so I altered that to index.php/ Now that I've changed to index.php/_/ (or leave it blank which gives the standard "Category" subpath), its all working again. Here is the Mod Rewrite file:

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