【发布时间】:2016-04-04 05:32:57
【问题描述】:
这是我的.htaccess文件代码
RewriteEngine On
RewriteBase /api
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
文件路径
api/
- htaccess
- index.php
这个网址很好用
http://localhost/api/index.php/inventory/login/
但是http://localhost/api/inventory/login/ 显示 404 not found 错误。如何解决这个问题?
【问题讨论】:
-
我试过了,但它不起作用。 @AmitRajput
标签: php apache .htaccess mod-rewrite slim