• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
]SOLVED] $route['(:any)'] = "standardcontroler/$1";

#1
[eluser]huzzel[/eluser]
Hy,

i try to to change

http://127.0.0.1/controler/function/id

to

http://127.0.0.1/function/id

If the controler not exists i would like to route all data to my standardcontroller.

My first attempt was in routes.php

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

but it not work :-(

EDIT...

Lol solved by my self
$config['index_page'] = "index.php";
$config['index_page'] = "";
and mod_rewrite on now it works fine :-)


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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