How is add subject blog to url with _remap and .htaccess to CodeIgniter? (dynamic)

i use of CodeIgniter
how is add subject blog to url for that page that with _remap and .htaccess.
LIKE:
my url:

http://localhost/blog?id=16

to
subject: this is CodeIgniter
url:

www.mysite.com/blog/this is CodeIgniter. 

how change this for any dynamic id? and replace $row->subject with hello?

my CI_Controller is:


<?php
class Blog extends CI_Controller {
    function __construct()
    {
        parent::__construct();                
    }
    
    function _remap( $method )
        {
            // $method contains the second segment of your URI
            switch( $method )
            {
                case 'hello':
                    $this->index();
                    break;
            }
        }
    /**/
    function index()
    {
        
                $g_subject = $this->input->get('id', TRUE);             
                $query = $this->db->get_where('miniblog', array('id' => $g_subject));
                foreach ($query->result() as $row)
                {
                $data = array(
                    'subject' => $row->subject,
                    'title' => $row->title,                
                    'image_path' => $row->image_path,
                    'alt' => $row->alt,
                    'text' => $row->text,
                    'date' => $row->date,
                );
                }
                 
                 $this->load->view('miniblog/blog', $data);
                 //add customer size to databe on customer
                 
                 //$this->customer_size_model->show();
              
    }
    function ipv6()
    {
        $this->load->view('miniblog/ipv6');
    }
}
?>

my .htaccess is:

RewriteEngine on
RewriteCond $1 !^(index\\.php|resources|robots\\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

Why there is not a unique forum on the sitepoint for CodeIgniter?
I need your help, please help me in this post. Thanks!

You can’t do this with Apache, since Apache doesn’t know that “this is CodeIgniter” is the title of blog item 16.

Either you need to use a RewriteMap (rather advanced, not really advisable), or you could change the way your application handles blog items such that it uses the title as the key instead of the id field, or you could make URLs like


/blog/16/this is CodeIgniter

where the PK id is part of the URL.

Thanks! to CodeIgniter is way named function _remap, do this work.
Did you proposal is true use of remap to equal other ways?

The _remap function seems some functionality of CI to forward requests from one controller/action to another, and has nothing to do with URLs.
If you want to rewrite URLs you need mod_rewrite. This is not something that CI can do on it’s own.
Please re-read my previous post.