CodeIgniter Forums
]SOLVED] $route['(:any)'] = "standardcontroler/$1"; - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: ]SOLVED] $route['(:any)'] = "standardcontroler/$1"; (/showthread.php?tid=24081)



]SOLVED] $route['(:any)'] = "standardcontroler/$1"; - El Forum - 10-30-2009

[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 :-)