2011-07-28 28 views

回答

1

尝试

public function index() { 
    $gclid = $this->input->get('gclid'); 
    ($gclid) ? header("Location: /") : null; 
} 
+0

感谢 - 我现在有这个问题就像domain.com/?gclid=k4kl543pds任何URL转到错误404 有没有一种方法,以防止它会错误在使用类似上面的查询字符串的codeigniter中404? – Zabs

+0

'公共函数索引(){gbid = $ this-> input-> get('gclid'); $ array = array('CM5D19f6OlKoC7RRc8QodUn6Pxw','xxx'); //允许gclids (in_array($ array,$ gclid))? header(“Location:/”):null; }' – Anton

相关问题