how to makerewrite engine ?id=10 to /10 |
[eluser]MrAmine[/eluser]
hi all please im looking for a solution about rewrite engine i want to make a rewrite engine mode like this http://localhost/ci/index.php/welcome/id=10 To http://localhost/ci/index.php/welcome/10
[eluser]eoinmcg[/eluser]
in your application/config/routes.config Code: $route['welcome/(:num)'] = "welcome/index/$1"; all the info is here: http://ellislab.com/codeigniter/user-gui...uting.html
[eluser]ghprod[/eluser]
or you can use like this Code: $route['welcome/id=(:num)'] = 'welcome/index/$1'; regards |
Welcome Guest, Not a member yet? Register Sign In |