Welcome Guest, Not a member yet? Register   Sign In
Avoid unnecessary parameter in URL

In our site we have a function 'reg_new' in a controller 'registeration' without any parameter, but when we type anything after the url ie, www.ABCD.index.php/registeration/reg_new/bank.html, it show the basic registration page. But we need to show the home page/404 page instead of registration view page.
How can we do that?.

Use a route to capture the URL when it has too many parameters, or check in your controller and call show_404().

There is any function used to route the url in CodeIgniter?.

Theme © iAndrew 2016 - Forum software by © MyBB