我有这个问题,我在本地运行一个应用程序(PHP 5.3.5)并且它可以工作,但是当我把它放到网上时它没有(我有 PHP 5.3.6)。
- http://domain.com/ //有效
- http://domain.com/route //不起作用 错误 500
- http://domain.com/index.php/route //有效
这是我的“.htaccess”
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
正如你所看到的,我只添加了这一行RewriteCond %{REQUEST_FILENAME} !-d
,我也尝试过使用原始的 .htaccess 但没有奏效。
有任何想法吗?