【问题标题】:How to fix "No input file specified." in php如何修复“未指定输入文件”。在php中
【发布时间】:2022-01-10 17:39:09
【问题描述】:

我创建了一个网站,并使用 Twig PHP 进行模板和 Toro PHP 进行路由。这是我网站的网址,http://imbilly.esy.es。当我访问联系页面(http://imbilly.esy.es/contact)时,它显示“未指定输入文件。”。 我不知道如何解决这个问题。

这是我的 .htaccess 里面的内容:

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

联系表格代码:

【问题讨论】:

标签: php .htaccess twig


【解决方案1】:

你需要更换

RewriteRule ^(.*)$ /index.php/$1 [L]

RewriteRule ^(.*)$ /index.php?/$1 [L]

【讨论】:

    猜你喜欢
    • 2020-02-03
    • 2014-12-12
    • 1970-01-01
    • 2021-11-18
    • 2015-02-12
    • 2015-11-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多