Welcome Guest, Not a member yet? Register   Sign In
tell CI not to show part of URL
#11

[eluser]CodeIgniteMe[/eluser]
You can read about re-routing URIs.
http://ellislab.com/codeigniter/user-gui...uting.html.
sample re-routing:
Code:
$route['something_happened'] = "controller404/method";
so you can just use
Quote:http://example.com/index.php/something_happened
to trigger your error controller.

if you want to just have
Quote:http://example.com/index.php/
to trigger your error controller, you can set your error controller as your default controller. But I don't think that's what you want.
You can't just remove the URI because CI is URI-driven. Everything is triggered in the URI
#12

[eluser]jacobson[/eluser]
and that's why I thought for a minute that 404_override would be better solution. But after that I've had all this problems with handling controllers and methods properly... Ok, thx very much for your help Smile




Theme © iAndrew 2016 - Forum software by © MyBB