我使用CodeIgniter开发了一个REST API,并使用AngularJS来使用它。在localhost上一切正常,但是当我把它投入生产时,当我调用我的API方法时,我得到一个File Not Found错误:
Screen Shot (左侧localhost
,右侧制作)
它与.htaccess文件有关还是可能是端口问题?
这是我在。www \ ci-3_todo:
下的.htaccess文件RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Order allow,deny
Allow from all
答案 0 :(得分:0)
为网址使用小写字词并再次测试
答案 1 :(得分:0)
尝试点击此网址即可。
promoter.capesolution.tn/ce/ci-3_todo/index.php/ApiRoutes/routes
干杯