I did what it is said in the htaccess:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
I put the above, so that I will be able to do this:
http://localhost/Speakom2/Home/index
Instead of:
http://localhost/Speakom2/index.php/Home/index
But it doesnt work... I get 404 error..how to fix this so it works?!?
Controller:
class Home extends CI_Controller {
public function Index()
{
$this->load->view('welcome_message');
}
}
htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]