2011-07-28 34 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

相關問題