I'm trying to create a RESTful api using CodeIgniter.
Everything is working fine locally, but I'm getting "No input file specified." message when deployed on production.
https://mydomain/api/controller/function
Based on numerous research, .htaccess might be causing this.
here is the .htaccess of api
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
in config.php
$config['base_url'] = '';
$config['index_page'] = 'index.php';
$config['uri_protocol'] = 'AUTO';
I have tried replacing with RewriteRule ^(.*)$ index.php?/$1 [L]
based here, still doesn't work.