[eluser]Geneous[/eluser]
Hi mddd
Thanks for your fast reply.
I have followed your 1st way. And really works for me.
I have written these two cases.so if pagination number is not there then route will map URL to first case.and if pagination number is there then it matches to 2nd case.
1) //When Pagination number is not there
$route['text/([A-Za-z0-9\-]+)/([A-Za-z0-9\-]+)/([A-Za-z0-9\-]+)/text1/(:num)/(:num)'] = 'text/text1/$1/$2/$3/$4/$5';
2) //When pagination number is there
$route['text/([A-Za-z0-9\-]+)/([A-Za-z0-9\-]+)/([A-Za-z0-9\-]+)/text1/(:num)/(:num)/(:num)'] = 'text/text1/$1/$2/$3/$4/$5/$6';
So it worked for me.
Thanks a lotz. :-)