Could you point whyat's needed to a Codeigniter app to correctly be started?

Hi Experts

Could you point whyat's needed to a Codeigniter app to correctly be started?

When opened the app presents this screen

And index.php must be fired to make it start.

Another app under the same htdocs present  the login screen but only correctly runs if index.php is used in the path.

Thanks in advance!
Eduardo FuerteDeveloper and AnalystAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ayoub RouziEntrepreneur & Web developerCommented:
You need to setup CI to point to the right base URL of the app. To do this, open up system/application/config/config.php and
edit the base_url array item to point to your server and CI folder.

$config['base_url'] = "http://localhost/ci/";

We'll do a quick test to see if CI is up and running properly. Go to http://localhost/ci/ and you
should see the following.
Eduardo FuerteDeveloper and AnalystAuthor Commented:

It had been configurated before like:

$config['base_url']	= '';

// = IP

Open in new window

Ayoub RouziEntrepreneur & Web developerCommented:
change it to:

$config['base_url']	= 'http://localhost/app/';

Open in new window

Where "app" is the name of your application folder.
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Eduardo FuerteDeveloper and AnalystAuthor Commented:
Nothing changes.
Ayoub RouziEntrepreneur & Web developerCommented:
Did you ever checked with another codeigniter version ?
Eduardo FuerteDeveloper and AnalystAuthor Commented:
It must to perform on this CI  version.
Marco GasiFreelancerCommented:
Hi Eduardo.
First, let me say your directory tree looks unusual: I don't see the standard CodeIgniter directories application and system. index.php should reside in the same directory of those standard directories:

Open in new window

Second, you should have a .htaccess file in your application root: if you have, please post it here; otherwise create one and put this as first line (read more at
DirectoryIndex index.php

Open in new window

Third, as Ayoub Rouzi said, you must configure properly the value of $config['base_url'] to make CI application internal links work correctly. is just a placeholder. If you are on your local server this value should be set to 'http://localhost/<your_application_directory>; if your application is hosted in a server, you should set the value to your domain name + eventual subdirectory

Fourth, you can remove index.php using a .htaccess file like this one (read about this here:; if you are using a previous major version of CI you can read this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Open in new window

In addition you have to set $config['index_page'] in application/config/config.php to an empty value:
$config['index_page'] = '';

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eduardo FuerteDeveloper and AnalystAuthor Commented:
Hi Marco!

Sorry the delay, I get an intercorrence...

I'm returning to this question asap.
Eduardo FuerteDeveloper and AnalystAuthor Commented:
Oh... the server where I get to test abends - the suport crew is checking what's wrong.
Eduardo FuerteDeveloper and AnalystAuthor Commented:
Thanks for help!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.