繁体   English   中英

知道为什么这个.htaccess会导致500个内部服务器错误吗?

[英]Any idea why this .htaccess can cause 500 internal server error?

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ api/index.php [QSA,L]

我接受了Slim microframework的示例.htaccess

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]

并在index.php之前添加了api ,现在我的应用无法正常工作。 为什么?

如果您确定api文件夹中有index.php,请尝试将其更改为

RewriteRule ^ api\\/index.php [QSA,L]

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM