Welcome Guest, Not a member yet? Register   Sign In
Routes not rewriting links properly
#6

[eluser]jvicab[/eluser]
if what you want is convert example.com/index.php/electronics/notebook/$1 into example.com/index.php/item/toshiba try
$route['electronics/(:any)/(:any)']='items/$2';
this rewrite the url changing electronics(the name of your controller) by items, and append the third parameter. Again, I am not sure what you would like your url to be


Messages In This Thread
Routes not rewriting links properly - by El Forum - 08-12-2011, 07:15 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 07:55 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 08:05 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 08:11 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 08:17 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 08:30 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 08:33 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 08:50 AM
Routes not rewriting links properly - by El Forum - 08-12-2011, 09:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB