Getting to know Code Igniter, and was following this particular section of the tutorial:
http://codeigniter.com/user_guide/tutorial/create_news_items.html
Everything works until I click “Create news item”. I receive 404 page and my URL bar looks like this:
http://localhost/tut/index.php/news/localhost/tut/index.php/news/create
Thinking maybe it’s route’s fault:
$route['default_controller'] = "news/index";
$route['404_override'] = '';
$route['news/(:any)'] = 'news/view/$1';
$route['news'] = 'news'; // what's this for?
$route['news/create'] = 'news/create';
Also, my config.php:
$config['base_url'] = 'localhost/tut';
Any ideas?
According to this thead, you have your
base_urlset incorrectly. Please follow advice as per thread.