When calling controller in codeigniter, it always seems to be going through "Welcome"

Asked

Viewed 36 times

0

I’m making a simple application in PHP with codeigniter, where I’m trying to access a controller, and apparently whenever I call this controller, it goes through Welcome, example:

localhost/estudando/Login/login

generates the same result as:

localhost/estudando/Welcome/Login/login.

And from the bug, back the same Welcome page only without css.

  • 1

    Have some . htaccess at the root of the project?

  • What is the configuration of your Virtualhost? As our friend said, you have some .htaccess configured at root?

  • Yes, there is a . htaccess, I am using rewrite: Rewriteengine On Rewritecond %{REQUEST_FILENAME/} ! -d Rewritecond %{REQUEST_FILENAME} ! -f Rewritecond %{REQUEST_FILENAME} ! -l Rewriterule (.+)$ index.php? url=$1 [QSA,L]

1 answer

0

This can be the Default Controller configuration.

See if in the file application/config/Routes.php contains something like this:

$route['default_controller'] = 'Welcome';

Browser other questions tagged

You are not signed in. Login or sign up in order to post.