• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rewrite url error

#1
[eluser]Unknown[/eluser]
hi !
i have a link1 : example.com/home/product/name
i want to rewrite it => link2: example.com/name

I have this in my routes.php

$route['(:any)'] = "home/product/$1";

but still not working! i have more controllers not one....
Is there any other solution to have this if cannot be done in route? thanks!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.