I have searched for hosting codeigniter app on AWS but i didn't find any solution. So I have tried uploading it on AWS using elastic beanstalk. but I'm getting error 404:- the page you requested not found when i try to access it.
Elastic beanstalk comfiguration:- 64bit Amazon Linux 2017.03 v2.4.1 running PHP 7.0
document root under software configuration:- /cieg (name of my codeigniter app is cieg)
here is my config.php
$config['base_url'] = 'http://ciegforum-env.p5fjm8jgtw.ap-south-1.elasticbeanstalk.com/';
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
here is my routes.php
$route['default_controller'] = 'dashboardC';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
here is my .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Things i have tried are following;
changing base_url to blank , removing slash present at end, adding app name at the end (that is http://ciegxxxxx.com/cieg)
changing uri_protocol to auto,
removing .htaccess and trying to access normally through index.php
I'm deploying application on server for first time and this application works fine on localhost.
Sorry for my english