CodeIgniter Forums
The requested URL ..... was not found on this server - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: The requested URL ..... was not found on this server (/showthread.php?tid=45613)



The requested URL ..... was not found on this server - El Forum - 09-28-2011

[eluser]veledrom[/eluser]
Hi,

www.mydomain.com/graduation_area/login fails.

I am getting this error message:

Quote:Not Found

The requested URL /graduation_area/login was not found on this server.
Apache/2.2.3 (Red Hat) Server at www.mydomain.com Port 80

www.mydomain.com/graduation_area works fine.


Please help
Thanks in advance



.htaccess
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|web)
RewriteRule ^(.*)$ /index.php/$1 [L]

config.php file

Code:
$config['base_url'] = 'http://www.mydomain.com/graduation_area/';
$config['index_page'] = '';


graduation_area controller
Code:
<?php if (! defined('BASEPATH')) { exit('No direct script access allowed'); }

class Graduation_area extends CI_Controller {

public function __construct()
{
  parent::__construct();
}

public function index()
{
  $data['content'] = 'index_view.php';
  $this->load->view('template.php', $data);
}

public function login()
{
  $data['content'] = 'login_view.php';
  $this->load->view('template.php', $data);
}
}
//** EOF