Welcome Guest, Not a member yet? Register   Sign In
Avoide dublicate content
#2

[eluser]xwero[/eluser]
You could do
Code:
function category($chosen_category)
{
   if(func_num_args() > 1)
   {
      // error
   }

   // other code
}
Another way to do it is to add a routing rule
Code:
$route['controller/function/\d.+'] = 'error/page';
If you use php5 you can do something like
Code:
$keys = array('controller/function/\d.+');
$route = array_fill_keys($keys, 'error/page');
This way you only have to maintain the excess parameter urls.

But i'm sure there are other solutions.


Messages In This Thread
Avoide dublicate content - by El Forum - 08-19-2008, 06:35 AM
Avoide dublicate content - by El Forum - 08-19-2008, 07:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB