[eluser]happyeddie[/eluser]
Hi,
in my controller I can't pass any parameters to index() without it getting a 404.
If if I do this however, foo/index/234 then there is no 404.
All methods within my classes work fine. bar/thunk/234 works fine.
My controller looks like this
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class View_images extends CI_Controller {
public function __construct()
{
parent::__construct();
}
public function index()
{
echo $this->uri->segment(2);
}
My .htaccess file looks like:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
Any help will be appreciated. Thanks.