I\'m trying to setup a blog script on a website running on the CodeIgniter framework. I want do this without making any major code changes to my existing website\'s code. I figu
Does blog.domain.co/blog/latest also show a 404? maybe you could also take a look at the _remap() function for your default controller. http://ellislab.com/codeigniter/user-guide/general/controllers.html#default
Basically, CodeIgniter uses the second segment of the URI to determine which function in the controller gets called. You to override this behavior through the use of the _remap() function.
Straight from the user guide,
If your controller contains a function named _remap(), it will always get called regardless of what your URI contains. It overrides the normal behavior in which the URI determines which function is called, allowing you to define your own function routing rules.
public function _remap($method)
{
if ($method == 'some_method')
{
$this->$method();
}
else
{
$this->default_method();
}
}
Hope this helps.