shibly shibly - 2 years ago 54
PHP Question

Codeigniter error, file doesn't exist


Not Found

The requested URL /products/create was not found on this server.
Apache/2.2.16 (Debian) Server at Port 80

From server error =>

[Sun Aug 28 23:51:45 2011] [error] [client] File does not exist: /var/www/CodeIgniter_2.0.2/products

routes.php =>

$route['default_controller'] = 'products';
$route['404_override'] = '';

What would i do ?

Why is this error ?

In .htaccess file of CodeIgniter_2.0.2 =>

Deny from all

virtual host for codeigniter =>

<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www/CodeIgniter_2.0.2

<Directory /var/www/CodeIgniter_2.0.2>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all


Answer Source

Unless you have a .htaccess rewrite the correct URL should be Notice the inclusion of the index.php and the proper domain.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download