【问题标题】:"No input file specified" Error on server [duplicate]服务器上的“未指定输入文件”错误[重复]
【发布时间】:2014-08-20 09:59:24
【问题描述】:

我刚刚将我的网站上传到我的 Godaddy 服务器 但是有No input file specified.的错误
我用谷歌搜索了很多,任何一个原因都必须是 .htaccess 文件代码。

我不知道它是什么。这个怎么运作。这是我的 htaccess 文件代码

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>

我该如何解决这个问题? 请帮助我是这种编码的新手。任何帮助表示赞赏。 如果可能的话,链接最简单的 .htaccess 编码教程....

【问题讨论】:

标签: php apache .htaccess


【解决方案1】:

使用这个

<IfModule mod_rewrite.c>

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php/?$1 [QSA,L]

</IfModule>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-02-06
    • 2021-08-11
    • 2015-02-12
    • 1970-01-01
    • 2018-09-20
    • 2017-09-01
    • 1970-01-01
    相关资源
    最近更新 更多