1
Galley the default route of the site is "http://localhost/" or "http://localhost/index.php"
when I go to the login page for example, "http://localhost/login" and not "http://localhost/index.php/login" as the codeiginiter obliges...
You can change that?
.htacess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
config.php file
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
$config['base_url'] = '';
Routes file is default
$route['default_controller'] = 'welcome';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
Controler, name "Login"
class Welcome extends CI_Controller {
public function index()
{
$this->load->view('index');
}
and the View is inside a folder "login" that has inside a "enter php."
Possible duplicate of Routes in Codeigniter
– novic