Welcome Guest, Not a member yet? Register   Sign In
Understanding CI URL Structure
#4

[eluser]bubbafoley[/eluser]
The default controller is only used when no url segments are passed. Even when you remove index.php with an htaccess file you still have to pass the url like example.com/controller/method/arg1/arg2/etc.

If your htaccess file is set right you should be able to access that function via example.com/application/search.

To just get example.com/search working you'll need to set a route in application/config/routes.php:

Code:
$route['search'] = 'application/search';


Messages In This Thread
Understanding CI URL Structure - by El Forum - 05-10-2011, 03:44 PM
Understanding CI URL Structure - by El Forum - 05-10-2011, 03:56 PM
Understanding CI URL Structure - by El Forum - 05-10-2011, 04:06 PM
Understanding CI URL Structure - by El Forum - 05-10-2011, 04:08 PM
Understanding CI URL Structure - by El Forum - 05-10-2011, 04:10 PM
Understanding CI URL Structure - by El Forum - 05-10-2011, 04:28 PM
Understanding CI URL Structure - by El Forum - 05-10-2011, 04:46 PM
Understanding CI URL Structure - by El Forum - 05-12-2011, 03:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB