我正在熟悉RESTful api (CRUD)和AngularJS和Slim PHP框架。我正在学习本教程:。当应用程序尝试GET数据(文件:angular-crud/slim/index.php)时, $http.get('api/});我得到了错误代码,Status Code: HTTP/1.1 404 Not Found
获取数据的url是:http://localhost
我有以下文件夹结构:/backend + sub-pages (these are the ones I want to hide)/backend/api + sub-pages
目前,CMS会在文件夹/backend下生成大量页面,我不想让公众看到它。我要求任何路由/backend/*,除了在/backend/admin子文件夹或b
场景1(工作良好):/ is the website root/api/ <this is the CodeIgniter Root, with index.phpand default CI .htaccess>RewriteEngine On
RewriteRule ^api/(.*)$ /api</em