URI Routing to the 404 page

#1
[eluser]GregX999[/eluser]
In my routes file I have the following:
Code:
$route['signup'] = "users/signup";
$route['signin'] = "users/signin";
$route['signout'] = "users/signout";

Is there a way to create a route so that if someone types "www.whatever.com/users/signup", they get routed to the 404 page?

I figure I can just make a method in a controller that calls
Code:
show_404($_SERVER['REQUEST_URI'])
and then route to that, but I was wondering if there was a direct way to route right to that page.

Greg

#2
[eluser]clip[/eluser]
I guess you could try:

Code:
$route['users/signup'] = 'my404controllermethodorwhatever';

#3
[eluser]GregX999[/eluser]
That's the way I had already figured out.

What I'd really like to do is make a route kinda like this:
Code:
$route['users/signup'] = show_404();

And not have to create any extra controllers or methods.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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