Welcome Guest, Not a member yet? Register   Sign In
.ebextensions configuration for Codeigniter index.php problemin AWS elastic beanstalk
#1

(This post was last modified: 07-28-2021, 08:57 AM by gibin.)

Hi anyone knows about the .ebextensions configuration for Codeigniter index.php problem in AWS elastic beanstalk?
Reply
#2

finally got it 
 created a file in nginx (/etc/nginx/conf.d/elasticbeanstalk/01modrewrite.conf)
code :
 location / {

        try_files $uri $uri/ /index.php?$query_string;

        # Remove from everywhere index.php
        if ($request_uri ~* "^(./)index\.php(/?)(.)") {
            return 301 $1$3;
        }
    }
Reply




Theme © iAndrew 2016 - Forum software by © MyBB